Skip to content
Vectorlight.net

#cc227b

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

HEX
#cc227b
RGB
204, 34, 123
HSL
328.59°, 71.43%, 46.67%
OKLCH
0.56 0.21 355.4
Names
—
Lists

Codes

FormatValue
HEX#cc227b
RGBrgb(204 34 123)
HSLhsl(328.59 71.43% 46.67%)
OKLCHoklch(0.56 0.21 355.4)
CMYKcmyk(0% 83.33% 39.71% 20%)
Android#ffcc227b

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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