#D97DEE#D97DEE

#D97DEE is a light, vivid purple. Relative luminance 0.356; OKLCH L 73.1% C 0.182 H 320.0°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#D97DEE
RGBrgb(217, 125, 238)
HSLhsl(289, 77%, 71%)
HSVhsv(289, 47%, 93%)
CMYKcmyk(8.8%, 47.5%, 0%, 6.7%)
CIE-LABlab(66.21, 52.96, -42.44)
CIE-LCHlch(66.21, 67.87, 321.29°)
OKLaboklab(73.06% 0.1396 -0.1173)
OKLCHoklch(73.06% 0.182 320)
XYZxyz(51.3796, 35.5939, 85.0362)
Luminance0.3559 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DEE #92EE7D
analogous
#A07DEE #D97DEE #EE7DCA
triadic
#D97DEE #EED97D #7DEED9
tetradic
#D97DEE #EEA07D #92EE7D #7DCAEE
square
#D97DEE #EEA07D #92EE7D #7DCAEE
split-complementary
#D97DEE #CAEE7D #7DEEA0
monochromatic
#B21CD5 #C947E7 #D97DEE #E9B3F5 #F7E4FB

Accessibility & contrast

On white

2.59
#D97DEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#D97DEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DEE
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DEE#FFFFFF#000000##000000
##D97DEE1.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9BF2
Deuteranopia (green-blind)
#85A4EB
Tritanopia (blue-blind)
#DA8CAB
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97dee;
/* rgb */ color: rgb(217, 125, 238);
/* oklch */ color: oklch(73.1% 0.182 320.0);
Tailwind
colors: {
  custom: {
    50: '#e7a5f4',
    500: '#d97dee',
    950: '#000000',
  },
}
SCSS
$custom: #d97dee;
$custom-light: #e7a5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d97dee",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 238
  },
  "hsl": {
    "h": 288.85,
    "s": 76.871,
    "l": 71.176
  },
  "oklch": {
    "l": 0.73058,
    "c": 0.18239,
    "h": 320
  },
  "luminance": 0.35592
}

Semantic roles & 50–950 ramp

primary
#D97DEE
secondary
#DAF2D5
accent
#D90C32
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97DEE

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

Preview Lab → · Contrast checker → · Palette generator →

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