#D987FE#D987FE

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

Color values

HEX#D987FE
RGBrgb(217, 135, 254)
HSLhsl(281, 98%, 76%)
HSVhsv(281, 47%, 100%)
CMYKcmyk(14.6%, 46.9%, 0%, 0.4%)
CIE-LABlab(68.92, 51.03, -46.95)
CIE-LCHlch(68.92, 69.35, 317.38°)
OKLaboklab(75.31% 0.1282 -0.1304)
OKLCHoklch(75.31% 0.183 314.5)
XYZxyz(55.1658, 39.2368, 98.4142)
Luminance0.3923 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987FE #ACFE87
analogous
#9E87FE #D987FE #FE87E7
triadic
#D987FE #FED987 #87FED9
tetradic
#D987FE #FE9E87 #ACFE87 #87E7FE
square
#D987FE #FE9E87 #ACFE87 #87E7FE
split-complementary
#D987FE #E7FE87 #87FE9E
monochromatic
#B30EFD #C64AFD #D987FE #ECC4FF #F5E1FF

Accessibility & contrast

On white

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

On black

8.85
#D987FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987FE
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987FE#FFFFFF#000000##000000
##D987FE1.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d987fe;
/* rgb */ color: rgb(217, 135, 254);
/* oklch */ color: oklch(75.3% 0.183 314.5);
Tailwind
colors: {
  custom: {
    50: '#e7acff',
    500: '#d987fe',
    950: '#000000',
  },
}
SCSS
$custom: #d987fe;
$custom-light: #e7acff;
$custom-dark: #000000;
JSON
{
  "hex": "#d987fe",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 281.345,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75314,
    "c": 0.18292,
    "h": 314.5
  },
  "luminance": 0.39235
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D987FE

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

Preview Lab → · Contrast checker → · Palette generator →

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