Skip to content
Vectorlight.net

#ac31eb

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

HEX
#ac31eb
RGB
172, 49, 235
HSL
279.68°, 82.3%, 55.69%
OKLCH
0.59 0.26 310.54
Names
—
Lists

Codes

FormatValue
HEX#ac31eb
RGBrgb(172 49 235)
HSLhsl(279.68 82.3% 55.69%)
OKLCHoklch(0.59 0.26 310.54)
CMYKcmyk(26.81% 79.15% 0% 7.84%)
Android#ffac31eb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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