Skip to content
Vectorlight.net

#aa31cf

Codes, contrast, shades, harmonies and SVG snippets for this color.

HEX
#aa31cf
RGB
170, 49, 207
HSL
285.95°, 62.2%, 50.2%
OKLCH
0.57 0.24 316.73
Names
—
Lists

Codes

FormatValue
HEX#aa31cf
RGBrgb(170 49 207)
HSLhsl(285.95 62.2% 50.2%)
OKLCHoklch(0.57 0.24 316.73)
CMYKcmyk(17.87% 76.33% 0% 18.82%)
Android#ffaa31cf

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
5.18:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.04:1
Fail AA normal text
Pass AA large text
On black #000000 · Best text #ffffff

Open in contrast checker

Shades & tints

OKLCH lightness, mixed toward white then black.

Open in shades & tints

Harmonies

Complementary

Analogous

Triadic

Open in palette generator

Color-blindness

Normal
Protanopia
Deuteranopia
Tritanopia

Open simulator

SVG snippets

fill
fill="#aa31cf"
Gradient stop
<stop stop-color="#aa31cf"/>
CSS variable + fill
:root { --c: #aa31cf; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

color / background
color: #aa31cf;
background-color: #aa31cf;
bg-[#aa31cf]