Skip to content
Vectorlight.net

#ab31eb

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

HEX
#ab31eb
RGB
171, 49, 235
HSL
279.35°, 82.3%, 55.69%
OKLCH
0.59 0.26 310.22
Names
—
Lists

Codes

FormatValue
HEX#ab31eb
RGBrgb(171 49 235)
HSLhsl(279.35 82.3% 55.69%)
OKLCHoklch(0.59 0.26 310.22)
CMYKcmyk(27.23% 79.15% 0% 7.84%)
Android#ffab31eb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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