Skip to content
Vectorlight.net

#ab40bf

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

HEX
#ab40bf
RGB
171, 64, 191
HSL
290.55°, 49.8%, 50%
OKLCH
0.57 0.21 320.97
Names
—
Lists

Codes

FormatValue
HEX#ab40bf
RGBrgb(171 64 191)
HSLhsl(290.55 49.8% 50%)
OKLCHoklch(0.57 0.21 320.97)
CMYKcmyk(10.47% 66.49% 0% 25.1%)
Android#ffab40bf

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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