Skip to content
Vectorlight.net

#d542cc

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

HEX
#d542cc
RGB
213, 66, 204
HSL
303.67°, 63.64%, 54.71%
OKLCH
0.64 0.23 330.54
Names
—
Lists

Codes

FormatValue
HEX#d542cc
RGBrgb(213 66 204)
HSLhsl(303.67 63.64% 54.71%)
OKLCHoklch(0.64 0.23 330.54)
CMYKcmyk(0% 69.01% 4.23% 16.47%)
Android#ffd542cc

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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