Skip to content
Vectorlight.net

#ab52ab

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

HEX
#ab52ab
RGB
171, 82, 171
HSL
300°, 35.18%, 49.61%
OKLCH
0.58 0.16 327.41
Names
—
Lists

Codes

FormatValue
HEX#ab52ab
RGBrgb(171 82 171)
HSLhsl(300 35.18% 49.61%)
OKLCHoklch(0.58 0.16 327.41)
CMYKcmyk(0% 52.05% 0% 32.94%)
Android#ffab52ab

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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