#D987DC#D987DC

#D987DC is a light, vivid purple. Relative luminance 0.372; OKLCH L 73.7% C 0.148 H 325.7°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#D987DC
RGBrgb(217, 135, 220)
HSLhsl(298, 55%, 70%)
HSVhsv(298, 39%, 86%)
CMYKcmyk(1.4%, 38.6%, 0%, 13.7%)
CIE-LABlab(67.46, 44.40, -30.53)
CIE-LCHlch(67.46, 53.89, 325.48°)
OKLaboklab(73.75% 0.1222 -0.0833)
OKLCHoklch(73.75% 0.148 325.7)
XYZxyz(50.1964, 37.2491, 72.2420)
Luminance0.3725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987DC #8ADC87
analogous
#AE87DC #D987DC #DC87B5
triadic
#D987DC #DCD987 #87DCD9
tetradic
#D987DC #DCAE87 #8ADC87 #87B5DC
square
#D987DC #DCAE87 #8ADC87 #87B5DC
split-complementary
#D987DC #B5DC87 #87DCAE
monochromatic
#B035B4 #CA58CE #D987DC #E8B6EA #F7E6F8

Accessibility & contrast

On white

2.49
#D987DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#D987DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987DC
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987DC#FFFFFF#000000##000000
##D987DC1.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#809EDF
Deuteranopia (green-blind)
#95A8D9
Tritanopia (blue-blind)
#DD8FA7
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d987dc;
/* rgb */ color: rgb(217, 135, 220);
/* oklch */ color: oklch(73.7% 0.148 325.7);
Tailwind
colors: {
  custom: {
    50: '#e6ace7',
    500: '#d987dc',
    950: '#000000',
  },
}
SCSS
$custom: #d987dc;
$custom-light: #e6ace7;
$custom-dark: #000000;
JSON
{
  "hex": "#d987dc",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 297.882,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.73745,
    "c": 0.1479,
    "h": 325.7
  },
  "luminance": 0.37247
}

Semantic roles & 50–950 ramp

primary
#D987DC
secondary
#D4ECD3
accent
#C22329
background
#FEFAFE
surface
#FCF4FC
border
#D5CED5
text
#161016
muted
#847F84

Preview Lab

Preview with #D987DC

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

Preview Lab → · Contrast checker → · Palette generator →

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