Skip to content
Vectorlight.net

#ab48bb

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

HEX
#ab48bb
RGB
171, 72, 187
HSL
291.65°, 45.82%, 50.78%
OKLCH
0.58 0.19 321.87
Names
—
Lists

Codes

FormatValue
HEX#ab48bb
RGBrgb(171 72 187)
HSLhsl(291.65 45.82% 50.78%)
OKLCHoklch(0.58 0.19 321.87)
CMYKcmyk(8.56% 61.5% 0% 26.67%)
Android#ffab48bb

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
4.79: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="#ab48bb"
Gradient stop
<stop stop-color="#ab48bb"/>
CSS variable + fill
:root { --c: #ab48bb; }
svg .icon { fill: var(--c); }

Recolor an SVG with this color

CSS

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