#D987EC#D987EC

#D987EC is a light, vivid purple. Relative luminance 0.381; OKLCH L 74.5% C 0.164 H 319.9°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#D987EC
RGBrgb(217, 135, 236)
HSLhsl(289, 73%, 73%)
HSVhsv(289, 43%, 93%)
CMYKcmyk(8.1%, 42.8%, 0%, 7.5%)
CIE-LABlab(68.12, 47.44, -38.35)
CIE-LCHlch(68.12, 61.00, 321.05°)
OKLaboklab(74.46% 0.1254 -0.1056)
OKLCHoklch(74.46% 0.164 319.9)
XYZxyz(52.4177, 38.1376, 83.9407)
Luminance0.3814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987EC #9AEC87
analogous
#A687EC #D987EC #EC87CC
triadic
#D987EC #ECD987 #87ECD9
tetradic
#D987EC #ECA687 #9AEC87 #87CCEC
square
#D987EC #ECA687 #9AEC87 #87CCEC
split-complementary
#D987EC #CCEC87 #87ECA6
monochromatic
#B522D7 #C852E4 #D987EC #EABCF4 #F7E5FB

Accessibility & contrast

On white

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

On black

8.63
#D987EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987EC
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987EC#FFFFFF#000000##000000
##D987EC1.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A0F0
Deuteranopia (green-blind)
#8EA9E9
Tritanopia (blue-blind)
#DA94AE
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d987ec;
/* rgb */ color: rgb(217, 135, 236);
/* oklch */ color: oklch(74.5% 0.164 319.9);
Tailwind
colors: {
  custom: {
    50: '#e6acf2',
    500: '#d987ec',
    950: '#000000',
  },
}
SCSS
$custom: #d987ec;
$custom-light: #e6acf2;
$custom-dark: #000000;
JSON
{
  "hex": "#d987ec",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 288.713,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.74455,
    "c": 0.16397,
    "h": 319.9
  },
  "luminance": 0.38136
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D987EC

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

Preview Lab → · Contrast checker → · Palette generator →

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