Skip to content
Vectorlight.net

#ab21dc

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

HEX
#ab21dc
RGB
171, 33, 220
HSL
284.28°, 73.91%, 49.61%
OKLCH
0.57 0.26 314.38
Names
—
Lists

Codes

FormatValue
HEX#ab21dc
RGBrgb(171 33 220)
HSLhsl(284.28 73.91% 49.61%)
OKLCHoklch(0.57 0.26 314.38)
CMYKcmyk(22.27% 85% 0% 13.73%)
Android#ffab21dc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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