Skip to content
Vectorlight.net

#ab5aaa

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

HEX
#ab5aaa
RGB
171, 90, 170
HSL
300.74°, 32.53%, 51.18%
OKLCH
0.59 0.15 327.69
Names
—
Lists

Codes

FormatValue
HEX#ab5aaa
RGBrgb(171 90 170)
HSLhsl(300.74 32.53% 51.18%)
OKLCHoklch(0.59 0.15 327.69)
CMYKcmyk(0% 47.37% 0.58% 32.94%)
Android#ffab5aaa

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
4.39:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
4.77:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

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="#ab5aaa"
Gradient stop
<stop stop-color="#ab5aaa"/>
CSS variable + fill
:root { --c: #ab5aaa; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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