#D987F8#D987F8

#D987F8 is a light, vivid purple. Relative luminance 0.389; OKLCH L 75.0% C 0.177 H 316.2°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#D987F8
RGBrgb(217, 135, 248)
HSLhsl(284, 89%, 75%)
HSVhsv(284, 46%, 97%)
CMYKcmyk(12.5%, 45.6%, 0%, 2.7%)
CIE-LABlab(68.65, 49.81, -44.11)
CIE-LCHlch(68.65, 66.53, 318.48°)
OKLaboklab(75.02% 0.1274 -0.1222)
OKLCHoklch(75.02% 0.177 316.2)
XYZxyz(54.2200, 38.8585, 93.4330)
Luminance0.3886 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987F8 #A6F887
analogous
#A187F8 #D987F8 #F887DE
triadic
#D987F8 #F8D987 #87F8D9
tetradic
#D987F8 #F8A187 #A6F887 #87DEF8
square
#D987F8 #F8A187 #A6F887 #87DEF8
split-complementary
#D987F8 #DEF887 #87F8A1
monochromatic
#B413F1 #C74DF5 #D987F8 #EBC1FB #F6E2FD

Accessibility & contrast

On white

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

On black

8.77
#D987F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987F8
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987F8#FFFFFF#000000##000000
##D987F81.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A2FC
Deuteranopia (green-blind)
#89AAF5
Tritanopia (blue-blind)
#D897B4
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d987f8;
/* rgb */ color: rgb(217, 135, 248);
/* oklch */ color: oklch(75.0% 0.177 316.2);
Tailwind
colors: {
  custom: {
    50: '#e7acfb',
    500: '#d987f8',
    950: '#000000',
  },
}
SCSS
$custom: #d987f8;
$custom-light: #e7acfb;
$custom-dark: #000000;
JSON
{
  "hex": "#d987f8",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 283.54,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.75021,
    "c": 0.17653,
    "h": 316.2
  },
  "luminance": 0.38857
}

Semantic roles & 50–950 ramp

primary
#D987F8
secondary
#DEF5D6
accent
#E6003F
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D987F8

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

Preview Lab → · Contrast checker → · Palette generator →

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