Skip to content
Vectorlight.net

#d31ca5

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

HEX
#d31ca5
RGB
211, 28, 165
HSL
315.08°, 76.57%, 46.86%
OKLCH
0.59 0.24 341.72
Names
—
Lists

Codes

FormatValue
HEX#d31ca5
RGBrgb(211 28 165)
HSLhsl(315.08 76.57% 46.86%)
OKLCHoklch(0.59 0.24 341.72)
CMYKcmyk(0% 86.73% 21.8% 17.25%)
Android#ffd31ca5

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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