Skip to content
Vectorlight.net

#ac28dc

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

HEX
#ac28dc
RGB
172, 40, 220
HSL
284°, 72%, 50.98%
OKLCH
0.57 0.26 314.45
Names
—
Lists

Codes

FormatValue
HEX#ac28dc
RGBrgb(172 40 220)
HSLhsl(284 72% 50.98%)
OKLCHoklch(0.57 0.26 314.45)
CMYKcmyk(21.82% 81.82% 0% 13.73%)
Android#ffac28dc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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