#D987FB#D987FB

#D987FB is a light, vivid purple. Relative luminance 0.390; OKLCH L 75.2% C 0.180 H 315.3°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#D987FB
RGBrgb(217, 135, 251)
HSLhsl(282, 94%, 76%)
HSVhsv(282, 46%, 98%)
CMYKcmyk(13.5%, 46.2%, 0%, 1.6%)
CIE-LABlab(68.78, 50.42, -45.53)
CIE-LCHlch(68.78, 67.94, 317.91°)
OKLaboklab(75.17% 0.1278 -0.1263)
OKLCHoklch(75.17% 0.18 315.3)
XYZxyz(54.6891, 39.0462, 95.9039)
Luminance0.3905 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987FB #A9FB87
analogous
#9F87FB #D987FB #FB87E3
triadic
#D987FB #FBD987 #87FBD9
tetradic
#D987FB #FB9F87 #A9FB87 #87E3FB
square
#D987FB #FB9F87 #A9FB87 #87E3FB
split-complementary
#D987FB #E3FB87 #87FB9F
monochromatic
#B311F7 #C64CF9 #D987FB #ECC2FD #F6E1FE

Accessibility & contrast

On white

2.38
#D987FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.81
#D987FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987FB
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987FB#FFFFFF#000000##000000
##D987FB1.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A3FF
Deuteranopia (green-blind)
#87AAF8
Tritanopia (blue-blind)
#D798B5
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d987fb;
/* rgb */ color: rgb(217, 135, 251);
/* oklch */ color: oklch(75.2% 0.180 315.3);
Tailwind
colors: {
  custom: {
    50: '#e7acfd',
    500: '#d987fb',
    950: '#000000',
  },
}
SCSS
$custom: #d987fb;
$custom-light: #e7acfd;
$custom-dark: #000000;
JSON
{
  "hex": "#d987fb",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 282.414,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75167,
    "c": 0.17972,
    "h": 315.3
  },
  "luminance": 0.39045
}

Semantic roles & 50–950 ramp

primary
#D987FB
secondary
#DFF6D5
accent
#E60043
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D987FB

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

Preview Lab → · Contrast checker → · Palette generator →

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