#D87EFD#D87EFD

#D87EFD is a light, vivid purple. Relative luminance 0.366; OKLCH L 73.8% C 0.196 H 315.3°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#D87EFD
RGBrgb(216, 126, 253)
HSLhsl(283, 97%, 74%)
HSVhsv(283, 50%, 99%)
CMYKcmyk(14.6%, 50.2%, 0%, 0.8%)
CIE-LABlab(66.99, 55.15, -49.47)
CIE-LCHlch(66.99, 74.08, 318.11°)
OKLaboklab(73.84% 0.139 -0.1377)
OKLCHoklch(73.84% 0.196 315.3)
XYZxyz(53.5066, 36.6140, 97.1581)
Luminance0.3661 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87EFD #A3FD7E
analogous
#997EFD #D87EFD #FD7EE2
triadic
#D87EFD #FDD87E #7EFDD8
tetradic
#D87EFD #FD997E #A3FD7E #7EE2FD
square
#D87EFD #FD997E #A3FD7E #7EE2FD
split-complementary
#D87EFD #E2FD7E #7EFD99
monochromatic
#B405FB #C642FC #D87EFD #EABAFE #F6E1FF

Accessibility & contrast

On white

2.52
#D87EFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#D87EFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87EFD
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87EFD#FFFFFF#000000##000000
##D87EFD1.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#629EFF
Deuteranopia (green-blind)
#7EA6FA
Tritanopia (blue-blind)
#D692B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d87efd;
/* rgb */ color: rgb(216, 126, 253);
/* oklch */ color: oklch(73.8% 0.196 315.3);
Tailwind
colors: {
  custom: {
    50: '#e6a6fe',
    500: '#d87efd',
    950: '#000000',
  },
}
SCSS
$custom: #d87efd;
$custom-light: #e6a6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d87efd",
  "rgb": {
    "r": 216,
    "g": 126,
    "b": 253
  },
  "hsl": {
    "h": 282.52,
    "s": 96.947,
    "l": 74.314
  },
  "oklch": {
    "l": 0.73837,
    "c": 0.19565,
    "h": 315.3
  },
  "luminance": 0.36612
}

Semantic roles & 50–950 ramp

primary
#D87EFD
secondary
#DEF7D4
accent
#E60043
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D87EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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