#D987F9#D987F9

#D987F9 is a light, vivid purple. Relative luminance 0.389; OKLCH L 75.1% C 0.178 H 315.9°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#D987F9
RGBrgb(217, 135, 249)
HSLhsl(283, 90%, 75%)
HSVhsv(283, 46%, 98%)
CMYKcmyk(12.9%, 45.8%, 0%, 2.4%)
CIE-LABlab(68.69, 50.01, -44.58)
CIE-LCHlch(68.69, 67.00, 318.29°)
OKLaboklab(75.07% 0.1275 -0.1236)
OKLCHoklch(75.07% 0.178 315.9)
XYZxyz(54.3755, 38.9207, 94.2523)
Luminance0.3892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987F9 #A7F987
analogous
#A087F9 #D987F9 #F987E0
triadic
#D987F9 #F9D987 #87F9D9
tetradic
#D987F9 #F9A087 #A7F987 #87E0F9
square
#D987F9 #F9A087 #A7F987 #87E0F9
split-complementary
#D987F9 #E0F987 #87F9A0
monochromatic
#B412F3 #C74DF6 #D987F9 #EBC1FC #F6E2FE

Accessibility & contrast

On white

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

On black

8.78
#D987F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987F9
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987F9#FFFFFF#000000##000000
##D987F91.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A3FD
Deuteranopia (green-blind)
#88AAF6
Tritanopia (blue-blind)
#D897B4
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d987f9;
/* rgb */ color: rgb(217, 135, 249);
/* oklch */ color: oklch(75.1% 0.178 315.9);
Tailwind
colors: {
  custom: {
    50: '#e7acfb',
    500: '#d987f9',
    950: '#000000',
  },
}
SCSS
$custom: #d987f9;
$custom-light: #e7acfb;
$custom-dark: #000000;
JSON
{
  "hex": "#d987f9",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 283.158,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.75069,
    "c": 0.1776,
    "h": 315.9
  },
  "luminance": 0.38919
}

Semantic roles & 50–950 ramp

primary
#D987F9
secondary
#DEF6D5
accent
#E60040
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D987F9

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

Preview Lab → · Contrast checker → · Palette generator →

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