Skip to content
Vectorlight.net

#ac22c4

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

HEX
#ac22c4
RGB
172, 34, 196
HSL
291.11°, 70.43%, 45.1%
OKLCH
0.55 0.24 320.92
Names
—
Lists

Codes

FormatValue
HEX#ac22c4
RGBrgb(172 34 196)
HSLhsl(291.11 70.43% 45.1%)
OKLCHoklch(0.55 0.24 320.92)
CMYKcmyk(12.24% 82.65% 0% 23.14%)
Android#ffac22c4

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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