#D97DEB#D97DEB

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

Color values

HEX#D97DEB
RGBrgb(217, 125, 235)
HSLhsl(290, 73%, 71%)
HSVhsv(290, 47%, 92%)
CMYKcmyk(7.7%, 46.8%, 0%, 7.8%)
CIE-LABlab(66.07, 52.38, -41.00)
CIE-LCHlch(66.07, 66.52, 321.95°)
OKLaboklab(72.91% 0.1392 -0.1132)
OKLCHoklch(72.91% 0.179 320.9)
XYZxyz(50.9425, 35.4191, 82.7343)
Luminance0.3542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DEB #8FEB7D
analogous
#A27DEB #D97DEB #EB7DC6
triadic
#D97DEB #EBD97D #7DEBD9
tetradic
#D97DEB #EBA27D #8FEB7D #7DC6EB
square
#D97DEB #EBA27D #8FEB7D #7DC6EB
split-complementary
#D97DEB #C6EB7D #7DEBA2
monochromatic
#B120CE #C948E3 #D97DEB #E9B2F3 #F7E4FB

Accessibility & contrast

On white

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

On black

8.08
#D97DEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DEB
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DEB#FFFFFF#000000##000000
##D97DEB1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9AEF
Deuteranopia (green-blind)
#87A4E8
Tritanopia (blue-blind)
#DB8BA9
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97deb;
/* rgb */ color: rgb(217, 125, 235);
/* oklch */ color: oklch(72.9% 0.179 320.9);
Tailwind
colors: {
  custom: {
    50: '#e7a5f2',
    500: '#d97deb',
    950: '#000000',
  },
}
SCSS
$custom: #d97deb;
$custom-light: #e7a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d97deb",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 235
  },
  "hsl": {
    "h": 290.182,
    "s": 73.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.72914,
    "c": 0.17939,
    "h": 320.9
  },
  "luminance": 0.35417
}

Semantic roles & 50–950 ramp

primary
#D97DEB
secondary
#D8F1D3
accent
#D51030
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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