Skip to content
Vectorlight.net

#c40cc7

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

HEX
#c40cc7
RGB
196, 12, 199
HSL
299.04°, 88.63%, 41.37%
OKLCH
0.58 0.26 327.51
Names
—
Lists

Codes

FormatValue
HEX#c40cc7
RGBrgb(196 12 199)
HSLhsl(299.04 88.63% 41.37%)
OKLCHoklch(0.58 0.26 327.51)
CMYKcmyk(1.51% 93.97% 0% 21.96%)
Android#ffc40cc7

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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