Skip to content
Vectorlight.net

#ac42cb

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

HEX
#ac42cb
RGB
172, 66, 203
HSL
286.42°, 56.85%, 52.75%
OKLCH
0.58 0.21 317.65
Names
—
Lists

Codes

FormatValue
HEX#ac42cb
RGBrgb(172 66 203)
HSLhsl(286.42 56.85% 52.75%)
OKLCHoklch(0.58 0.21 317.65)
CMYKcmyk(15.27% 67.49% 0% 20.39%)
Android#ffac42cb

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

Recolor an SVG with this color

CSS

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