#D987EE#D987EE

#D987EE is a light, vivid purple. Relative luminance 0.383; OKLCH L 74.5% C 0.166 H 319.2°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#D987EE
RGBrgb(217, 135, 238)
HSLhsl(288, 75%, 73%)
HSVhsv(288, 43%, 93%)
CMYKcmyk(8.8%, 43.3%, 0%, 6.7%)
CIE-LABlab(68.21, 47.83, -39.31)
CIE-LCHlch(68.21, 61.91, 320.58°)
OKLaboklab(74.55% 0.1258 -0.1084)
OKLCHoklch(74.55% 0.166 319.2)
XYZxyz(52.7099, 38.2545, 85.4796)
Luminance0.3825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987EE #9CEE87
analogous
#A587EE #D987EE #EE87CF
triadic
#D987EE #EED987 #87EED9
tetradic
#D987EE #EEA587 #9CEE87 #87CFEE
square
#D987EE #EEA587 #9CEE87 #87CFEE
split-complementary
#D987EE #CFEE87 #87EEA5
monochromatic
#B51FDC #C851E6 #D987EE #EABDF6 #F7E4FB

Accessibility & contrast

On white

2.43
#D987EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.65
#D987EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987EE
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987EE#FFFFFF#000000##000000
##D987EE1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A1F2
Deuteranopia (green-blind)
#8EA9EB
Tritanopia (blue-blind)
#DA94AF
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d987ee;
/* rgb */ color: rgb(217, 135, 238);
/* oklch */ color: oklch(74.5% 0.166 319.2);
Tailwind
colors: {
  custom: {
    50: '#e6acf4',
    500: '#d987ee',
    950: '#000000',
  },
}
SCSS
$custom: #d987ee;
$custom-light: #e6acf4;
$custom-dark: #000000;
JSON
{
  "hex": "#d987ee",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 287.767,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.74547,
    "c": 0.16604,
    "h": 319.2
  },
  "luminance": 0.38253
}

Semantic roles & 50–950 ramp

primary
#D987EE
secondary
#DEF3D8
accent
#D70E37
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D987EE

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

Preview Lab → · Contrast checker → · Palette generator →

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