#D987F7#D987F7

#D987F7 is a light, vivid purple. Relative luminance 0.388; OKLCH L 75.0% C 0.175 H 316.5°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#D987F7
RGBrgb(217, 135, 247)
HSLhsl(284, 88%, 75%)
HSVhsv(284, 45%, 97%)
CMYKcmyk(12.1%, 45.3%, 0%, 3.1%)
CIE-LABlab(68.60, 49.61, -43.63)
CIE-LCHlch(68.60, 66.07, 318.67°)
OKLaboklab(74.97% 0.1272 -0.1208)
OKLCHoklch(74.97% 0.175 316.5)
XYZxyz(54.0653, 38.7966, 92.6181)
Luminance0.3880 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987F7 #A5F787
analogous
#A187F7 #D987F7 #F787DD
triadic
#D987F7 #F7D987 #87F7D9
tetradic
#D987F7 #F7A187 #A5F787 #87DDF7
square
#D987F7 #F7A187 #A5F787 #87DDF7
split-complementary
#D987F7 #DDF787 #87F7A1
monochromatic
#B514EF #C74EF3 #D987F7 #EBC0FB #F6E2FD

Accessibility & contrast

On white

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

On black

8.76
#D987F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987F7
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987F7#FFFFFF#000000##000000
##D987F71.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A2FB
Deuteranopia (green-blind)
#89AAF4
Tritanopia (blue-blind)
#D897B3
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d987f7;
/* rgb */ color: rgb(217, 135, 247);
/* oklch */ color: oklch(75.0% 0.175 316.5);
Tailwind
colors: {
  custom: {
    50: '#e7acfa',
    500: '#d987f7',
    950: '#000000',
  },
}
SCSS
$custom: #d987f7;
$custom-light: #e7acfa;
$custom-dark: #000000;
JSON
{
  "hex": "#d987f7",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 283.929,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.74972,
    "c": 0.17548,
    "h": 316.5
  },
  "luminance": 0.38795
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D987F7

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

Preview Lab → · Contrast checker → · Palette generator →

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