Skip to content
Vectorlight.net

#d31aaa

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

HEX
#d31aaa
RGB
211, 26, 170
HSL
313.3°, 78.06%, 46.47%
OKLCH
0.59 0.25 340.08
Names
—
Lists

Codes

FormatValue
HEX#d31aaa
RGBrgb(211 26 170)
HSLhsl(313.3 78.06% 46.47%)
OKLCHoklch(0.59 0.25 340.08)
CMYKcmyk(0% 87.68% 19.43% 17.25%)
Android#ffd31aaa

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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