Skip to content
Vectorlight.net

#cd138b

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

HEX
#cd138b
RGB
205, 19, 139
HSL
321.29°, 83.04%, 43.92%
OKLCH
0.57 0.23 348.93
Names
—
Lists

Codes

FormatValue
HEX#cd138b
RGBrgb(205 19 139)
HSLhsl(321.29 83.04% 43.92%)
OKLCHoklch(0.57 0.23 348.93)
CMYKcmyk(0% 90.73% 32.2% 19.61%)
Android#ffcd138b

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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