#D987F4#D987F4

#D987F4 is a light, vivid purple. Relative luminance 0.386; OKLCH L 74.8% C 0.172 H 317.4°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#D987F4
RGBrgb(217, 135, 244)
HSLhsl(285, 83%, 74%)
HSVhsv(285, 45%, 96%)
CMYKcmyk(11.1%, 44.7%, 0%, 4.3%)
CIE-LABlab(68.47, 49.01, -42.20)
CIE-LCHlch(68.47, 64.67, 319.27°)
OKLaboklab(74.83% 0.1268 -0.1167)
OKLCHoklch(74.83% 0.172 317.4)
XYZxyz(53.6061, 38.6130, 90.1996)
Luminance0.3861 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987F4 #A2F487
analogous
#A387F4 #D987F4 #F487D8
triadic
#D987F4 #F4D987 #87F4D9
tetradic
#D987F4 #F4A387 #A2F487 #87D8F4
square
#D987F4 #F4A387 #A2F487 #87D8F4
split-complementary
#D987F4 #D8F487 #87F4A3
monochromatic
#B517EA #C74FEF #D987F4 #EBBFF9 #F6E3FC

Accessibility & contrast

On white

2.41
#D987F4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#D987F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987F4
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987F4#FFFFFF#000000##000000
##D987F41.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A2F8
Deuteranopia (green-blind)
#8BAAF1
Tritanopia (blue-blind)
#D996B2
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d987f4;
/* rgb */ color: rgb(217, 135, 244);
/* oklch */ color: oklch(74.8% 0.172 317.4);
Tailwind
colors: {
  custom: {
    50: '#e6acf8',
    500: '#d987f4',
    950: '#000000',
  },
}
SCSS
$custom: #d987f4;
$custom-light: #e6acf8;
$custom-dark: #000000;
JSON
{
  "hex": "#d987f4",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 285.138,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.74829,
    "c": 0.17231,
    "h": 317.4
  },
  "luminance": 0.38611
}

Semantic roles & 50–950 ramp

primary
#D987F4
secondary
#DEF4D7
accent
#E0063C
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D987F4

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

Preview Lab → · Contrast checker → · Palette generator →

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