#D997EB#D997EB

#D997EB is a light, vivid purple. Relative luminance 0.429; OKLCH L 77.0% C 0.136 H 318.9°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#D997EB
RGBrgb(217, 151, 235)
HSLhsl(287, 68%, 76%)
HSVhsv(287, 36%, 92%)
CMYKcmyk(7.7%, 35.7%, 0%, 7.8%)
CIE-LABlab(71.48, 38.78, -32.59)
CIE-LCHlch(71.48, 50.66, 319.96°)
OKLaboklab(76.96% 0.1023 -0.0893)
OKLCHoklch(76.96% 0.136 318.9)
XYZxyz(54.6753, 42.8846, 83.9785)
Luminance0.4288 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D997EB #A9EB97
analogous
#AF97EB #D997EB #EB97D3
triadic
#D997EB #EBD997 #97EBD9
tetradic
#D997EB #EBAF97 #A9EB97 #97D3EB
square
#D997EB #EBAF97 #A9EB97 #97D3EB
split-complementary
#D997EB #D3EB97 #97EBAF
monochromatic
#B330D7 #C664E1 #D997EB #ECCAF5 #F6E5FA

Accessibility & contrast

On white

2.19
#D997EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.58
#D997EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D997EB
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D997EB#FFFFFF#000000##000000
##D997EB1.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CABEE
Deuteranopia (green-blind)
#9CB1E8
Tritanopia (blue-blind)
#DAA1B6
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d997eb;
/* rgb */ color: rgb(217, 151, 235);
/* oklch */ color: oklch(77.0% 0.136 318.9);
Tailwind
colors: {
  custom: {
    50: '#e6b6f1',
    500: '#d997eb',
    950: '#000000',
  },
}
SCSS
$custom: #d997eb;
$custom-light: #e6b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d997eb",
  "rgb": {
    "r": 217,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 287.143,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.76965,
    "c": 0.13578,
    "h": 318.9
  },
  "luminance": 0.42883
}

Semantic roles & 50–950 ramp

primary
#D997EB
secondary
#DFF2D9
accent
#D0163E
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D997EB

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

Preview Lab → · Contrast checker → · Palette generator →

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