#D987FA#D987FA

#D987FA is a light, vivid purple. Relative luminance 0.390; OKLCH L 75.1% C 0.179 H 315.6°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#D987FA
RGBrgb(217, 135, 250)
HSLhsl(283, 92%, 75%)
HSVhsv(283, 46%, 98%)
CMYKcmyk(13.2%, 46%, 0%, 2%)
CIE-LABlab(68.74, 50.22, -45.06)
CIE-LCHlch(68.74, 67.47, 318.10°)
OKLaboklab(75.12% 0.1277 -0.125)
OKLCHoklch(75.12% 0.179 315.6)
XYZxyz(54.5319, 38.9833, 95.0759)
Luminance0.3898 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987FA #A8FA87
analogous
#9F87FA #D987FA #FA87E1
triadic
#D987FA #FAD987 #87FAD9
tetradic
#D987FA #FA9F87 #A8FA87 #87E1FA
square
#D987FA #FA9F87 #A8FA87 #87E1FA
split-complementary
#D987FA #E1FA87 #87FA9F
monochromatic
#B411F5 #C64CF8 #D987FA #ECC2FC #F6E2FE

Accessibility & contrast

On white

2.39
#D987FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#D987FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987FA
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987FA#FFFFFF#000000##000000
##D987FA1.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A3FE
Deuteranopia (green-blind)
#88AAF7
Tritanopia (blue-blind)
#D798B5
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d987fa;
/* rgb */ color: rgb(217, 135, 250);
/* oklch */ color: oklch(75.1% 0.179 315.6);
Tailwind
colors: {
  custom: {
    50: '#e7acfc',
    500: '#d987fa',
    950: '#000000',
  },
}
SCSS
$custom: #d987fa;
$custom-light: #e7acfc;
$custom-dark: #000000;
JSON
{
  "hex": "#d987fa",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 282.783,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.75118,
    "c": 0.17866,
    "h": 315.6
  },
  "luminance": 0.38982
}

Semantic roles & 50–950 ramp

primary
#D987FA
secondary
#DFF6D5
accent
#E60042
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D987FA

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

Preview Lab → · Contrast checker → · Palette generator →

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