Skip to content
Vectorlight.net

#ac30dc

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

HEX
#ac30dc
RGB
172, 48, 220
HSL
283.26°, 71.07%, 52.55%
OKLCH
0.58 0.25 314.11
Names
—
Lists

Codes

FormatValue
HEX#ac30dc
RGBrgb(172 48 220)
HSLhsl(283.26 71.07% 52.55%)
OKLCHoklch(0.58 0.25 314.11)
CMYKcmyk(21.82% 78.18% 0% 13.73%)
Android#ffac30dc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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