Skip to content
Vectorlight.net

#cc31bb

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

HEX
#cc31bb
RGB
204, 49, 187
HSL
306.58°, 61.26%, 49.61%
OKLCH
0.6 0.24 333.11
Names
—
Lists

Codes

FormatValue
HEX#cc31bb
RGBrgb(204 49 187)
HSLhsl(306.58 61.26% 49.61%)
OKLCHoklch(0.6 0.24 333.11)
CMYKcmyk(0% 75.98% 8.33% 20%)
Android#ffcc31bb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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