#D97EE7#D97EE7

#D97EE7 is a light, vivid purple. Relative luminance 0.354; OKLCH L 72.9% C 0.174 H 322.1°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#D97EE7
RGBrgb(217, 126, 231)
HSLhsl(292, 69%, 70%)
HSVhsv(292, 45%, 91%)
CMYKcmyk(6.1%, 45.5%, 0%, 9.4%)
CIE-LABlab(66.09, 51.11, -38.75)
CIE-LCHlch(66.09, 64.14, 322.83°)
OKLaboklab(72.87% 0.1372 -0.1067)
OKLCHoklch(72.87% 0.174 322.1)
XYZxyz(50.4984, 35.4450, 79.7674)
Luminance0.3544 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EE7 #8CE77E
analogous
#A57EE7 #D97EE7 #E77EC0
triadic
#D97EE7 #E7D97E #7EE7D9
tetradic
#D97EE7 #E7A57E #8CE77E #7EC0E7
square
#D97EE7 #E7A57E #8CE77E #7EC0E7
split-complementary
#D97EE7 #C0E77E #7EE7A5
monochromatic
#B025C6 #CA4ADD #D97EE7 #E8B2F1 #F7E5FA

Accessibility & contrast

On white

2.60
#D97EE7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#D97EE7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EE7
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EE7#FFFFFF#000000##000000
##D97EE71.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#709AEB
Deuteranopia (green-blind)
#8AA4E4
Tritanopia (blue-blind)
#DC8BA8
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97ee7;
/* rgb */ color: rgb(217, 126, 231);
/* oklch */ color: oklch(72.9% 0.174 322.1);
Tailwind
colors: {
  custom: {
    50: '#e7a6ef',
    500: '#d97ee7',
    950: '#000000',
  },
}
SCSS
$custom: #d97ee7;
$custom-light: #e7a6ef;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ee7",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 231
  },
  "hsl": {
    "h": 292,
    "s": 68.627,
    "l": 70
  },
  "oklch": {
    "l": 0.72871,
    "c": 0.1738,
    "h": 322.1
  },
  "luminance": 0.35443
}

Semantic roles & 50–950 ramp

primary
#D97EE7
secondary
#D6EFD2
accent
#D1152E
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F16
muted
#847F84

Preview Lab

Preview with #D97EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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