#D987EB#D987EB

#D987EB is a light, vivid purple. Relative luminance 0.381; OKLCH L 74.4% C 0.163 H 320.2°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#D987EB
RGBrgb(217, 135, 235)
HSLhsl(289, 71%, 73%)
HSVhsv(289, 43%, 92%)
CMYKcmyk(7.7%, 42.6%, 0%, 7.8%)
CIE-LABlab(68.08, 47.24, -37.87)
CIE-LCHlch(68.08, 60.54, 321.29°)
OKLaboklab(74.41% 0.1252 -0.1042)
OKLCHoklch(74.41% 0.163 320.2)
XYZxyz(52.2728, 38.0796, 83.1777)
Luminance0.3808 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987EB #99EB87
analogous
#A787EB #D987EB #EB87CB
triadic
#D987EB #EBD987 #87EBD9
tetradic
#D987EB #EBA787 #99EB87 #87CBEB
square
#D987EB #EBA787 #99EB87 #87CBEB
split-complementary
#D987EB #CBEB87 #87EBA7
monochromatic
#B423D4 #C853E2 #D987EB #EABBF4 #F7E5FB

Accessibility & contrast

On white

2.44
#D987EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.62
#D987EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987EB
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987EB#FFFFFF#000000##000000
##D987EB1.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A0EF
Deuteranopia (green-blind)
#8FA9E8
Tritanopia (blue-blind)
#DA93AE
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d987eb;
/* rgb */ color: rgb(217, 135, 235);
/* oklch */ color: oklch(74.4% 0.163 320.2);
Tailwind
colors: {
  custom: {
    50: '#e6acf1',
    500: '#d987eb',
    950: '#000000',
  },
}
SCSS
$custom: #d987eb;
$custom-light: #e6acf1;
$custom-dark: #000000;
JSON
{
  "hex": "#d987eb",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 235
  },
  "hsl": {
    "h": 289.2,
    "s": 71.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.74409,
    "c": 0.16294,
    "h": 320.2
  },
  "luminance": 0.38078
}

Semantic roles & 50–950 ramp

primary
#D987EB
secondary
#DDF2D9
accent
#D31235
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D987EB

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

Preview Lab → · Contrast checker → · Palette generator →

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