Skip to content
Vectorlight.net

#ac42ef

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

HEX
#ac42ef
RGB
172, 66, 239
HSL
276.76°, 84.39%, 59.8%
OKLCH
0.61 0.25 308.62
Names
—
Lists

Codes

FormatValue
HEX#ac42ef
RGBrgb(172 66 239)
HSLhsl(276.76 84.39% 59.8%)
OKLCHoklch(0.61 0.25 308.62)
CMYKcmyk(28.03% 72.38% 0% 6.27%)
Android#ffac42ef

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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