Skip to content
Vectorlight.net

#ac52ea

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

HEX
#ac52ea
RGB
172, 82, 234
HSL
275.53°, 78.35%, 61.96%
OKLCH
0.62 0.22 308.42
Names
—
Lists

Codes

FormatValue
HEX#ac52ea
RGBrgb(172 82 234)
HSLhsl(275.53 78.35% 61.96%)
OKLCHoklch(0.62 0.22 308.42)
CMYKcmyk(26.5% 64.96% 0% 8.24%)
Android#ffac52ea

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

Recolor an SVG with this color

CSS

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