Skip to content
Vectorlight.net

#ab48bd

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

HEX
#ab48bd
RGB
171, 72, 189
HSL
290.77°, 46.99%, 51.18%
OKLCH
0.58 0.19 321.21
Names
—
Lists

Codes

FormatValue
HEX#ab48bd
RGBrgb(171 72 189)
HSLhsl(290.77 46.99% 51.18%)
OKLCHoklch(0.58 0.19 321.21)
CMYKcmyk(9.52% 61.9% 0% 25.88%)
Android#ffab48bd

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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