Skip to content
Vectorlight.net

#cc51aa

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

HEX
#cc51aa
RGB
204, 81, 170
HSL
316.59°, 54.67%, 55.88%
OKLCH
0.62 0.18 339.91
Names
—
Lists

Codes

FormatValue
HEX#cc51aa
RGBrgb(204 81 170)
HSLhsl(316.59 54.67% 55.88%)
OKLCHoklch(0.62 0.18 339.91)
CMYKcmyk(0% 60.29% 16.67% 20%)
Android#ffcc51aa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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