Skip to content
Vectorlight.net

#d31faa

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

HEX
#d31faa
RGB
211, 31, 170
HSL
313.67°, 74.38%, 47.45%
OKLCH
0.59 0.24 340.15
Names
—
Lists

Codes

FormatValue
HEX#d31faa
RGBrgb(211 31 170)
HSLhsl(313.67 74.38% 47.45%)
OKLCHoklch(0.59 0.24 340.15)
CMYKcmyk(0% 85.31% 19.43% 17.25%)
Android#ffd31faa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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