Skip to content
Vectorlight.net

#ab42fe

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

HEX
#ab42fe
RGB
171, 66, 254
HSL
273.51°, 98.95%, 62.75%
OKLCH
0.61 0.26 305.16
Names
—
Lists

Codes

FormatValue
HEX#ab42fe
RGBrgb(171 66 254)
HSLhsl(273.51 98.95% 62.75%)
OKLCHoklch(0.61 0.26 305.16)
CMYKcmyk(32.68% 74.02% 0% 0.39%)
Android#ffab42fe

Names & lists

Web-safe: No

Tailwind: No

Contrast

Aa
4.24:1
Fail AA normal text
Pass AA large text
On white #ffffff
Aa
4.94:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000

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

Recolor an SVG with this color

CSS

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