#D87EF8#D87EF8

#D87EF8 is a light, vivid purple. Relative luminance 0.363; OKLCH L 73.6% C 0.190 H 316.6°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#D87EF8
RGBrgb(216, 126, 248)
HSLhsl(284, 90%, 73%)
HSVhsv(284, 49%, 97%)
CMYKcmyk(12.9%, 49.2%, 0%, 2.7%)
CIE-LABlab(66.75, 54.15, -47.10)
CIE-LCHlch(66.75, 71.77, 318.98°)
OKLaboklab(73.58% 0.1384 -0.1308)
OKLCHoklch(73.58% 0.19 316.6)
XYZxyz(52.7205, 36.2996, 93.0181)
Luminance0.3630 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87EF8 #9EF87E
analogous
#9B7EF8 #D87EF8 #F87EDB
triadic
#D87EF8 #F8D87E #7EF8D8
tetradic
#D87EF8 #F89B7E #9EF87E #7EDBF8
square
#D87EF8 #F89B7E #9EF87E #7EDBF8
split-complementary
#D87EF8 #DBF87E #7EF89B
monochromatic
#B30DEF #C644F5 #D87EF8 #EAB8FB #F6E2FD

Accessibility & contrast

On white

2.54
#D87EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#D87EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87EF8
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87EF8#FFFFFF#000000##000000
##D87EF81.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#669DFC
Deuteranopia (green-blind)
#81A5F5
Tritanopia (blue-blind)
#D790B0
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d87ef8;
/* rgb */ color: rgb(216, 126, 248);
/* oklch */ color: oklch(73.6% 0.190 316.6);
Tailwind
colors: {
  custom: {
    50: '#e6a6fb',
    500: '#d87ef8',
    950: '#000000',
  },
}
SCSS
$custom: #d87ef8;
$custom-light: #e6a6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d87ef8",
  "rgb": {
    "r": 216,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 284.262,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.73584,
    "c": 0.19048,
    "h": 316.6
  },
  "luminance": 0.36298
}

Semantic roles & 50–950 ramp

primary
#D87EF8
secondary
#DEF6D5
accent
#E6003C
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D87EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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