#D97EEF#D97EEF

#D97EEF is a light, vivid purple. Relative luminance 0.359; OKLCH L 73.3% C 0.182 H 319.6°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#D97EEF
RGBrgb(217, 126, 239)
HSLhsl(288, 78%, 72%)
HSVhsv(288, 47%, 94%)
CMYKcmyk(9.2%, 47.3%, 0%, 6.3%)
CIE-LABlab(66.45, 52.65, -42.62)
CIE-LCHlch(66.45, 67.73, 321.01°)
OKLaboklab(73.25% 0.1384 -0.1178)
OKLCHoklch(73.25% 0.182 319.6)
XYZxyz(51.6541, 35.9073, 85.8545)
Luminance0.3590 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EEF #94EF7E
analogous
#A17EEF #D97EEF #EF7ECC
triadic
#D97EEF #EFD97E #7EEFD9
tetradic
#D97EEF #EFA17E #94EF7E #7ECCEF
square
#D97EEF #EFA17E #94EF7E #7ECCEF
split-complementary
#D97EEF #CCEF7E #7EEFA1
monochromatic
#B31BD8 #C948E8 #D97EEF #E9B4F6 #F7E4FC

Accessibility & contrast

On white

2.57
#D97EEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#D97EEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EEF
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EEF#FFFFFF#000000##000000
##D97EEF1.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9BF3
Deuteranopia (green-blind)
#86A5EC
Tritanopia (blue-blind)
#DA8DAB
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97eef;
/* rgb */ color: rgb(217, 126, 239);
/* oklch */ color: oklch(73.3% 0.182 319.6);
Tailwind
colors: {
  custom: {
    50: '#e7a6f4',
    500: '#d97eef',
    950: '#000000',
  },
}
SCSS
$custom: #d97eef;
$custom-light: #e7a6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d97eef",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 239
  },
  "hsl": {
    "h": 288.319,
    "s": 77.931,
    "l": 71.569
  },
  "oklch": {
    "l": 0.73251,
    "c": 0.18178,
    "h": 319.6
  },
  "luminance": 0.35905
}

Semantic roles & 50–950 ramp

primary
#D97EEF
secondary
#DCF3D6
accent
#DA0B34
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D97EEF

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

Preview Lab → · Contrast checker → · Palette generator →

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