#D987FC#D987FC

#D987FC is a light, vivid purple. Relative luminance 0.391; OKLCH L 75.2% C 0.181 H 315.1°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#D987FC
RGBrgb(217, 135, 252)
HSLhsl(282, 95%, 76%)
HSVhsv(282, 46%, 99%)
CMYKcmyk(13.9%, 46.4%, 0%, 1.2%)
CIE-LABlab(68.83, 50.62, -46.01)
CIE-LCHlch(68.83, 68.41, 317.73°)
OKLaboklab(75.22% 0.128 -0.1277)
OKLCHoklch(75.22% 0.181 315.1)
XYZxyz(54.8472, 39.1094, 96.7362)
Luminance0.3911 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D987FC #AAFC87
analogous
#9E87FC #D987FC #FC87E5
triadic
#D987FC #FCD987 #87FCD9
tetradic
#D987FC #FC9E87 #AAFC87 #87E5FC
square
#D987FC #FC9E87 #AAFC87 #87E5FC
split-complementary
#D987FC #E5FC87 #87FC9E
monochromatic
#B310F9 #C64BFB #D987FC #ECC3FD #F6E1FE

Accessibility & contrast

On white

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

On black

8.82
#D987FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D987FC
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D987FC#FFFFFF#000000##000000
##D987FC1.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d987fc;
/* rgb */ color: rgb(217, 135, 252);
/* oklch */ color: oklch(75.2% 0.181 315.1);
Tailwind
colors: {
  custom: {
    50: '#e7acfe',
    500: '#d987fc',
    950: '#000000',
  },
}
SCSS
$custom: #d987fc;
$custom-light: #e7acfe;
$custom-dark: #000000;
JSON
{
  "hex": "#d987fc",
  "rgb": {
    "r": 217,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 282.051,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75216,
    "c": 0.18079,
    "h": 315.1
  },
  "luminance": 0.39108
}

Semantic roles & 50–950 ramp

primary
#D987FC
secondary
#DFF6D5
accent
#E60045
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D987FC

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

Preview Lab → · Contrast checker → · Palette generator →

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