Skip to content
Vectorlight.net

#ab22bc

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

HEX
#ab22bc
RGB
171, 34, 188
HSL
293.38°, 69.37%, 43.53%
OKLCH
0.54 0.23 322.89
Names
—
Lists

Codes

FormatValue
HEX#ab22bc
RGBrgb(171 34 188)
HSLhsl(293.38 69.37% 43.53%)
OKLCHoklch(0.54 0.23 322.89)
CMYKcmyk(9.04% 81.91% 0% 26.27%)
Android#ffab22bc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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