Skip to content
Vectorlight.net

#c042bb

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

HEX
#c042bb
RGB
192, 66, 187
HSL
302.38°, 50%, 50.59%
OKLCH
0.6 0.21 329.47
Names
—
Lists

Codes

FormatValue
HEX#c042bb
RGBrgb(192 66 187)
HSLhsl(302.38 50% 50.59%)
OKLCHoklch(0.6 0.21 329.47)
CMYKcmyk(0% 65.63% 2.6% 24.71%)
Android#ffc042bb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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