#D97DEF#D97DEF

#D97DEF is a light, vivid purple. Relative luminance 0.357; OKLCH L 73.1% C 0.183 H 319.7°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#D97DEF
RGBrgb(217, 125, 239)
HSLhsl(288, 78%, 71%)
HSVhsv(288, 48%, 94%)
CMYKcmyk(9.2%, 47.7%, 0%, 6.3%)
CIE-LABlab(66.25, 53.15, -42.92)
CIE-LCHlch(66.25, 68.32, 321.08°)
OKLaboklab(73.11% 0.1398 -0.1187)
OKLCHoklch(73.11% 0.183 319.7)
XYZxyz(51.5269, 35.6529, 85.8121)
Luminance0.3565 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DEF #93EF7D
analogous
#A07DEF #D97DEF #EF7DCC
triadic
#D97DEF #EFD97D #7DEFD9
tetradic
#D97DEF #EFA07D #93EF7D #7DCCEF
square
#D97DEF #EFA07D #93EF7D #7DCCEF
split-complementary
#D97DEF #CCEF7D #7DEFA0
monochromatic
#B31AD7 #C947E8 #D97DEF #E9B3F6 #F7E4FC

Accessibility & contrast

On white

2.58
#D97DEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#D97DEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DEF
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DEF#FFFFFF#000000##000000
##D97DEF1.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d97def;
/* rgb */ color: rgb(217, 125, 239);
/* oklch */ color: oklch(73.1% 0.183 319.7);
Tailwind
colors: {
  custom: {
    50: '#e7a5f4',
    500: '#d97def',
    950: '#000000',
  },
}
SCSS
$custom: #d97def;
$custom-light: #e7a5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d97def",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 239
  },
  "hsl": {
    "h": 288.421,
    "s": 78.082,
    "l": 71.373
  },
  "oklch": {
    "l": 0.73106,
    "c": 0.18339,
    "h": 319.7
  },
  "luminance": 0.35651
}

Semantic roles & 50–950 ramp

primary
#D97DEF
secondary
#DBF3D5
accent
#DA0B33
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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