Skip to content
Vectorlight.net

#d97eff

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

HEX
#d97eff
RGB
217, 126, 255
HSL
282.33°, 100%, 74.71%
OKLCH
0.74 0.2 315.1
Names
—
Lists

Codes

FormatValue
HEX#d97eff
RGBrgb(217 126 255)
HSLhsl(282.33 100% 74.71%)
OKLCHoklch(0.74 0.2 315.1)
CMYKcmyk(14.9% 50.59% 0% 0%)
Android#ffd97eff

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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