#D987FF#D987FF

#D987FF is a light, vivid purple. Relative luminance 0.393; OKLCH L 75.4% C 0.184 H 314.2°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#D987FF
RGBrgb(217, 135, 255)
HSLhsl(281, 100%, 76%)
HSVhsv(281, 47%, 100%)
CMYKcmyk(14.9%, 47.1%, 0%, 0%)
CIE-LABlab(68.97, 51.23, -47.43)
CIE-LCHlch(68.97, 69.82, 317.21°)
OKLaboklab(75.36% 0.1284 -0.1318)
OKLCHoklch(75.36% 0.184 314.2)
XYZxyz(55.3263, 39.3011, 99.2597)
Luminance0.3930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987FF #ADFF87
analogous
#9D87FF #D987FF #FF87E9
triadic
#D987FF #FFD987 #87FFD9
tetradic
#D987FF #FF9D87 #ADFF87 #87E9FF
square
#D987FF #FF9D87 #ADFF87 #87E9FF
split-complementary
#D987FF #E9FF87 #87FF9D
monochromatic
#B20DFF #C64AFF #D987FF #ECC4FF #F5E0FF

Accessibility & contrast

On white

2.37
#D987FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.86
#D987FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987FF
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987FF#FFFFFF#000000##000000
##D987FF1.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA4FF
Deuteranopia (green-blind)
#85ABFC
Tritanopia (blue-blind)
#D699B7
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d987ff;
/* rgb */ color: rgb(217, 135, 255);
/* oklch */ color: oklch(75.4% 0.184 314.2);
Tailwind
colors: {
  custom: {
    50: '#e7acff',
    500: '#d987ff',
    950: '#000000',
  },
}
SCSS
$custom: #d987ff;
$custom-light: #e7acff;
$custom-dark: #000000;
JSON
{
  "hex": "#d987ff",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 281,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.75364,
    "c": 0.184,
    "h": 314.2
  },
  "luminance": 0.393
}

Semantic roles & 50–950 ramp

primary
#D987FF
secondary
#DFF7D4
accent
#E60049
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D987FF

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

Preview Lab → · Contrast checker → · Palette generator →

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