Skip to content
Vectorlight.net

#ab4b8a

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

HEX
#ab4b8a
RGB
171, 75, 138
HSL
320.63°, 39.02%, 48.24%
OKLCH
0.56 0.15 342.77
Names
—
Lists

Codes

FormatValue
HEX#ab4b8a
RGBrgb(171 75 138)
HSLhsl(320.63 39.02% 48.24%)
OKLCHoklch(0.56 0.15 342.77)
CMYKcmyk(0% 56.14% 19.3% 32.94%)
Android#ffab4b8a

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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