Skip to content
Vectorlight.net

#ab52ff

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

HEX
#ab52ff
RGB
171, 82, 255
HSL
270.87°, 100%, 66.08%
OKLCH
0.63 0.25 303.63
Names
—
Lists

Codes

FormatValue
HEX#ab52ff
RGBrgb(171 82 255)
HSLhsl(270.87 100% 66.08%)
OKLCHoklch(0.63 0.25 303.63)
CMYKcmyk(32.94% 67.84% 0% 0%)
Android#ffab52ff

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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