Skip to content
Vectorlight.net

#ab31db

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

HEX
#ab31db
RGB
171, 49, 219
HSL
283.06°, 70.25%, 52.55%
OKLCH
0.57 0.25 313.99
Names
—
Lists

Codes

FormatValue
HEX#ab31db
RGBrgb(171 49 219)
HSLhsl(283.06 70.25% 52.55%)
OKLCHoklch(0.57 0.25 313.99)
CMYKcmyk(21.92% 77.63% 0% 14.12%)
Android#ffab31db

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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