Skip to content
Vectorlight.net

#d371fe

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

HEX
#d371fe
RGB
211, 113, 254
HSL
281.7°, 98.6%, 71.96%
OKLCH
0.72 0.21 314.39
Names
—
Lists

Codes

FormatValue
HEX#d371fe
RGBrgb(211 113 254)
HSLhsl(281.7 98.6% 71.96%)
OKLCHoklch(0.72 0.21 314.39)
CMYKcmyk(16.93% 55.51% 0% 0.39%)
Android#ffd371fe

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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