#D997DB#D997DB

#D997DB is a light, moderate purple. Relative luminance 0.420; OKLCH L 76.3% C 0.119 H 325.7°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#D997DB
RGBrgb(217, 151, 219)
HSLhsl(298, 49%, 73%)
HSVhsv(298, 31%, 86%)
CMYKcmyk(0.9%, 31.1%, 0%, 14.1%)
CIE-LABlab(70.87, 35.71, -24.74)
CIE-LCHlch(70.87, 43.45, 325.28°)
OKLaboklab(76.31% 0.0983 -0.0671)
OKLCHoklch(76.31% 0.119 325.7)
XYZxyz(52.4668, 42.0012, 72.3474)
Luminance0.4200 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D997DB #99DB97
analogous
#B797DB #D997DB #DB97BB
triadic
#D997DB #DBD997 #97DBD9
tetradic
#D997DB #DBB797 #99DB97 #97BBDB
square
#D997DB #DBB797 #99DB97 #97BBDB
split-complementary
#D997DB #BBDB97 #97DBB7
monochromatic
#B440B8 #C86ACB #D997DB #EAC4EB #F7E8F7

Accessibility & contrast

On white

2.23
#D997DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#D997DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D997DB
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D997DB#FFFFFF#000000##000000
##D997DB1.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#92A8DE
Deuteranopia (green-blind)
#A2B0D9
Tritanopia (blue-blind)
#DD9DB0
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d997db;
/* rgb */ color: rgb(217, 151, 219);
/* oklch */ color: oklch(76.3% 0.119 325.7);
Tailwind
colors: {
  custom: {
    50: '#e5b6e6',
    500: '#d997db',
    950: '#000000',
  },
}
SCSS
$custom: #d997db;
$custom-light: #e5b6e6;
$custom-dark: #000000;
JSON
{
  "hex": "#d997db",
  "rgb": {
    "r": 217,
    "g": 151,
    "b": 219
  },
  "hsl": {
    "h": 298.235,
    "s": 48.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.76307,
    "c": 0.11901,
    "h": 325.7
  },
  "luminance": 0.41999
}

Semantic roles & 50–950 ramp

primary
#D997DB
secondary
#DDEEDD
accent
#BC2A2E
background
#FEFBFE
surface
#FCF6FC
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D997DB

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D997DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva