Skip to content
Vectorlight.net

#ab158c

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

HEX
#ab158c
RGB
171, 21, 140
HSL
312.4°, 78.13%, 37.65%
OKLCH
0.51 0.21 339.07
Names
—
Lists

Codes

FormatValue
HEX#ab158c
RGBrgb(171 21 140)
HSLhsl(312.4 78.13% 37.65%)
OKLCHoklch(0.51 0.21 339.07)
CMYKcmyk(0% 87.72% 18.13% 32.94%)
Android#ffab158c

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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