Skip to content
Vectorlight.net

#ab2daf

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

HEX
#ab2daf
RGB
171, 45, 175
HSL
298.15°, 59.09%, 43.14%
OKLCH
0.54 0.21 326.69
Names
—
Lists

Codes

FormatValue
HEX#ab2daf
RGBrgb(171 45 175)
HSLhsl(298.15 59.09% 43.14%)
OKLCHoklch(0.54 0.21 326.69)
CMYKcmyk(2.29% 74.29% 0% 31.37%)
Android#ffab2daf

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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