Skip to content
Vectorlight.net

#df31a6

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

HEX
#df31a6
RGB
223, 49, 166
HSL
319.66°, 73.11%, 53.33%
OKLCH
0.62 0.23 345
Names
—
Lists

Codes

FormatValue
HEX#df31a6
RGBrgb(223 49 166)
HSLhsl(319.66 73.11% 53.33%)
OKLCHoklch(0.62 0.23 345)
CMYKcmyk(0% 78.03% 25.56% 12.55%)
Android#ffdf31a6

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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