Skip to content
Vectorlight.net

#cc138e

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

HEX
#cc138e
RGB
204, 19, 142
HSL
320.11°, 82.96%, 43.73%
OKLCH
0.57 0.23 347.6
Names
—
Lists

Codes

FormatValue
HEX#cc138e
RGBrgb(204 19 142)
HSLhsl(320.11 82.96% 43.73%)
OKLCHoklch(0.57 0.23 347.6)
CMYKcmyk(0% 90.69% 30.39% 20%)
Android#ffcc138e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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