Skip to content
Vectorlight.net

#ab1aaa

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

HEX
#ab1aaa
RGB
171, 26, 170
HSL
300.41°, 73.6%, 38.63%
OKLCH
0.53 0.23 328.55
Names
—
Lists

Codes

FormatValue
HEX#ab1aaa
RGBrgb(171 26 170)
HSLhsl(300.41 73.6% 38.63%)
OKLCHoklch(0.53 0.23 328.55)
CMYKcmyk(0% 84.8% 0.58% 32.94%)
Android#ffab1aaa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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