#D987F6#D987F6

#D987F6 is a light, vivid purple. Relative luminance 0.387; OKLCH L 74.9% C 0.174 H 316.8°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#D987F6
RGBrgb(217, 135, 246)
HSLhsl(284, 86%, 75%)
HSVhsv(284, 45%, 96%)
CMYKcmyk(11.8%, 45.1%, 0%, 3.5%)
CIE-LABlab(68.56, 49.41, -43.15)
CIE-LCHlch(68.56, 65.60, 318.87°)
OKLaboklab(74.92% 0.1271 -0.1195)
OKLCHoklch(74.92% 0.174 316.8)
XYZxyz(53.9114, 38.7351, 91.8076)
Luminance0.3873 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987F6 #A4F687
analogous
#A187F6 #D987F6 #F687DC
triadic
#D987F6 #F6D987 #87F6D9
tetradic
#D987F6 #F6A187 #A4F687 #87DCF6
square
#D987F6 #F6A187 #A4F687 #87DCF6
split-complementary
#D987F6 #DCF687 #87F6A1
monochromatic
#B515ED #C74EF2 #D987F6 #EBC0FA #F6E3FD

Accessibility & contrast

On white

2.40
#D987F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#D987F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987F6
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987F6#FFFFFF#000000##000000
##D987F61.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A2FA
Deuteranopia (green-blind)
#8AAAF3
Tritanopia (blue-blind)
#D896B3
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d987f6;
/* rgb */ color: rgb(217, 135, 246);
/* oklch */ color: oklch(74.9% 0.174 316.8);
Tailwind
colors: {
  custom: {
    50: '#e6acf9',
    500: '#d987f6',
    950: '#000000',
  },
}
SCSS
$custom: #d987f6;
$custom-light: #e6acf9;
$custom-dark: #000000;
JSON
{
  "hex": "#d987f6",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 284.324,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.74924,
    "c": 0.17442,
    "h": 316.8
  },
  "luminance": 0.38733
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D987F6

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

Preview Lab → · Contrast checker → · Palette generator →

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