Skip to content
Vectorlight.net

#d51ca2

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

HEX
#d51ca2
RGB
213, 28, 162
HSL
316.54°, 76.76%, 47.25%
OKLCH
0.59 0.24 343.21
Names
—
Lists

Codes

FormatValue
HEX#d51ca2
RGBrgb(213 28 162)
HSLhsl(316.54 76.76% 47.25%)
OKLCHoklch(0.59 0.24 343.21)
CMYKcmyk(0% 86.85% 23.94% 16.47%)
Android#ffd51ca2

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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