#D987EF#D987EF

#D987EF is a light, vivid purple. Relative luminance 0.383; OKLCH L 74.6% C 0.167 H 318.9°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#D987EF
RGBrgb(217, 135, 239)
HSLhsl(287, 76%, 73%)
HSVhsv(287, 44%, 94%)
CMYKcmyk(9.2%, 43.5%, 0%, 6.3%)
CIE-LABlab(68.25, 48.02, -39.80)
CIE-LCHlch(68.25, 62.37, 320.35°)
OKLaboklab(74.59% 0.1259 -0.1098)
OKLCHoklch(74.59% 0.167 318.9)
XYZxyz(52.8572, 38.3134, 86.2555)
Luminance0.3831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987EF #9DEF87
analogous
#A587EF #D987EF #EF87D1
triadic
#D987EF #EFD987 #87EFD9
tetradic
#D987EF #EFA587 #9DEF87 #87D1EF
square
#D987EF #EFA587 #9DEF87 #87D1EF
split-complementary
#D987EF #D1EF87 #87EFA5
monochromatic
#B51EDE #C851E8 #D987EF #EABDF6 #F6E4FB

Accessibility & contrast

On white

2.42
#D987EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.66
#D987EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987EF
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987EF#FFFFFF#000000##000000
##D987EF1.002.428.668.66
#FFFFFF2.421.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A1F3
Deuteranopia (green-blind)
#8DA9EC
Tritanopia (blue-blind)
#DA95B0
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d987ef;
/* rgb */ color: rgb(217, 135, 239);
/* oklch */ color: oklch(74.6% 0.167 318.9);
Tailwind
colors: {
  custom: {
    50: '#e6acf4',
    500: '#d987ef',
    950: '#000000',
  },
}
SCSS
$custom: #d987ef;
$custom-light: #e6acf4;
$custom-dark: #000000;
JSON
{
  "hex": "#d987ef",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 287.308,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.74594,
    "c": 0.16708,
    "h": 318.9
  },
  "luminance": 0.38312
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D987EF

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

Preview Lab → · Contrast checker → · Palette generator →

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