#D87FEF#D87FEF

#D87FEF is a light, vivid purple. Relative luminance 0.360; OKLCH L 73.3% C 0.180 H 319.1°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#D87FEF
RGBrgb(216, 127, 239)
HSLhsl(288, 78%, 72%)
HSVhsv(288, 47%, 94%)
CMYKcmyk(9.6%, 46.9%, 0%, 6.3%)
CIE-LABlab(66.53, 51.86, -42.50)
CIE-LCHlch(66.53, 67.05, 320.67°)
OKLaboklab(73.29% 0.1359 -0.1175)
OKLCHoklch(73.29% 0.18 319.1)
XYZxyz(51.4862, 36.0115, 85.8834)
Luminance0.3601 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87FEF #96EF7F
analogous
#A07FEF #D87FEF #EF7FCE
triadic
#D87FEF #EFD87F #7FEFD8
tetradic
#D87FEF #EFA07F #96EF7F #7FCEEF
square
#D87FEF #EFA07F #96EF7F #7FCEEF
split-complementary
#D87FEF #CEEF7F #7FEFA0
monochromatic
#B21BD9 #C749E8 #D87FEF #E9B5F6 #F7E4FC

Accessibility & contrast

On white

2.56
#D87FEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.20
#D87FEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87FEF
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87FEF#FFFFFF#000000##000000
##D87FEF1.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9CF3
Deuteranopia (green-blind)
#86A5EC
Tritanopia (blue-blind)
#D98EAC
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d87fef;
/* rgb */ color: rgb(216, 127, 239);
/* oklch */ color: oklch(73.3% 0.180 319.1);
Tailwind
colors: {
  custom: {
    50: '#e6a6f4',
    500: '#d87fef',
    950: '#000000',
  },
}
SCSS
$custom: #d87fef;
$custom-light: #e6a6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d87fef",
  "rgb": {
    "r": 216,
    "g": 127,
    "b": 239
  },
  "hsl": {
    "h": 287.679,
    "s": 77.778,
    "l": 71.765
  },
  "oklch": {
    "l": 0.73285,
    "c": 0.17967,
    "h": 319.1
  },
  "luminance": 0.3601
}

Semantic roles & 50–950 ramp

primary
#D87FEF
secondary
#DDF3D7
accent
#DA0B36
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D87FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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