Skip to content
Vectorlight.net

#cd158e

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

HEX
#cd158e
RGB
205, 21, 142
HSL
320.54°, 81.42%, 44.31%
OKLCH
0.57 0.23 347.9
Names
—
Lists

Codes

FormatValue
HEX#cd158e
RGBrgb(205 21 142)
HSLhsl(320.54 81.42% 44.31%)
OKLCHoklch(0.57 0.23 347.9)
CMYKcmyk(0% 89.76% 30.73% 19.61%)
Android#ffcd158e

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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