Skip to content
Vectorlight.net

#d997fb

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

HEX
#d997fb
RGB
217, 151, 251
HSL
279.6°, 92.59%, 78.82%
OKLCH
0.78 0.15 313.5
Names
—
Lists

Codes

FormatValue
HEX#d997fb
RGBrgb(217 151 251)
HSLhsl(279.6 92.59% 78.82%)
OKLCHoklch(0.78 0.15 313.5)
CMYKcmyk(13.55% 39.84% 0% 1.57%)
Android#ffd997fb

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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