Skip to content
Vectorlight.net

#ab46cf

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

HEX
#ab46cf
RGB
171, 70, 207
HSL
284.23°, 58.8%, 54.31%
OKLCH
0.59 0.21 315.9
Names
—
Lists

Codes

FormatValue
HEX#ab46cf
RGBrgb(171 70 207)
HSLhsl(284.23 58.8% 54.31%)
OKLCHoklch(0.59 0.21 315.9)
CMYKcmyk(17.39% 66.18% 0% 18.82%)
Android#ffab46cf

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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