Skip to content
Vectorlight.net

#cc0102

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

HEX
#cc0102
RGB
204, 1, 2
HSL
359.7°, 99.02%, 40.2%
OKLCH
0.53 0.22 29.1
Names
—
Lists

Codes

FormatValue
HEX#cc0102
RGBrgb(204 1 2)
HSLhsl(359.7 99.02% 40.2%)
OKLCHoklch(0.53 0.22 29.1)
CMYKcmyk(0% 99.51% 99.02% 20%)
Android#ffcc0102

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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