Skip to content
Vectorlight.net

#ac57dc

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

HEX
#ac57dc
RGB
172, 87, 220
HSL
278.35°, 65.52%, 60.2%
OKLCH
0.62 0.2 311.34
Names
—
Lists

Codes

FormatValue
HEX#ac57dc
RGBrgb(172 87 220)
HSLhsl(278.35 65.52% 60.2%)
OKLCHoklch(0.62 0.2 311.34)
CMYKcmyk(21.82% 60.45% 0% 13.73%)
Android#ffac57dc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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