Skip to content
Vectorlight.net

#ac158e

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

HEX
#ac158e
RGB
172, 21, 142
HSL
311.92°, 78.24%, 37.84%
OKLCH
0.51 0.21 338.63
Names
—
Lists

Codes

FormatValue
HEX#ac158e
RGBrgb(172 21 142)
HSLhsl(311.92 78.24% 37.84%)
OKLCHoklch(0.51 0.21 338.63)
CMYKcmyk(0% 87.79% 17.44% 32.55%)
Android#ffac158e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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