Skip to content
Vectorlight.net

#d997db

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

HEX
#d997db
RGB
217, 151, 219
HSL
298.24°, 48.57%, 72.55%
OKLCH
0.76 0.12 325.67
Names
—
Lists

Codes

FormatValue
HEX#d997db
RGBrgb(217 151 219)
HSLhsl(298.24 48.57% 72.55%)
OKLCHoklch(0.76 0.12 325.67)
CMYKcmyk(0.91% 31.05% 0% 14.12%)
Android#ffd997db

Names & lists

Web-safe: No

Tailwind: No

Contrast

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

Recolor an SVG with this color

CSS

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