Skip to content
Vectorlight.net

#ab31bc

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

HEX
#ab31bc
RGB
171, 49, 188
HSL
292.66°, 58.65%, 46.47%
OKLCH
0.55 0.22 322.48
Names
—
Lists

Codes

FormatValue
HEX#ab31bc
RGBrgb(171 49 188)
HSLhsl(292.66 58.65% 46.47%)
OKLCHoklch(0.55 0.22 322.48)
CMYKcmyk(9.04% 73.94% 0% 26.27%)
Android#ffab31bc

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
5.38:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.89: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="#ab31bc"
Gradient stop
<stop stop-color="#ab31bc"/>
CSS variable + fill
:root { --c: #ab31bc; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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