#D987FD#D987FD

#D987FD is a light, vivid purple. Relative luminance 0.392; OKLCH L 75.3% C 0.182 H 314.8°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#D987FD
RGBrgb(217, 135, 253)
HSLhsl(282, 97%, 76%)
HSVhsv(282, 47%, 99%)
CMYKcmyk(14.2%, 46.6%, 0%, 0.8%)
CIE-LABlab(68.88, 50.83, -46.48)
CIE-LCHlch(68.88, 68.88, 317.56°)
OKLaboklab(75.27% 0.1281 -0.1291)
OKLCHoklch(75.27% 0.182 314.8)
XYZxyz(55.0061, 39.1730, 97.5730)
Luminance0.3917 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987FD #ABFD87
analogous
#9E87FD #D987FD #FD87E6
triadic
#D987FD #FDD987 #87FDD9
tetradic
#D987FD #FD9E87 #ABFD87 #87E6FD
square
#D987FD #FD9E87 #ABFD87 #87E6FD
split-complementary
#D987FD #E6FD87 #87FD9E
monochromatic
#B30FFB #C64BFC #D987FD #ECC3FE #F5E1FE

Accessibility & contrast

On white

2.38
#D987FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#D987FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987FD
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987FD#FFFFFF#000000##000000
##D987FD1.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA3FF
Deuteranopia (green-blind)
#86AAFA
Tritanopia (blue-blind)
#D798B6
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d987fd;
/* rgb */ color: rgb(217, 135, 253);
/* oklch */ color: oklch(75.3% 0.182 314.8);
Tailwind
colors: {
  custom: {
    50: '#e7acfe',
    500: '#d987fd',
    950: '#000000',
  },
}
SCSS
$custom: #d987fd;
$custom-light: #e7acfe;
$custom-dark: #000000;
JSON
{
  "hex": "#d987fd",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 281.695,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75265,
    "c": 0.18186,
    "h": 314.8
  },
  "luminance": 0.39172
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D987FD

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

Preview Lab → · Contrast checker → · Palette generator →

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