#D87EFE#D87EFE

#D87EFE is a light, vivid purple. Relative luminance 0.367; OKLCH L 73.9% C 0.197 H 315.0°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#D87EFE
RGBrgb(216, 126, 254)
HSLhsl(282, 98%, 75%)
HSVhsv(282, 50%, 100%)
CMYKcmyk(15%, 50.4%, 0%, 0.4%)
CIE-LABlab(67.03, 55.35, -49.94)
CIE-LCHlch(67.03, 74.55, 317.94°)
OKLaboklab(73.89% 0.1391 -0.1391)
OKLCHoklch(73.89% 0.197 315)
XYZxyz(53.6663, 36.6779, 97.9993)
Luminance0.3668 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87EFE #A4FE7E
analogous
#987EFE #D87EFE #FE7EE4
triadic
#D87EFE #FED87E #7EFED8
tetradic
#D87EFE #FE987E #A4FE7E #7EE4FE
square
#D87EFE #FE987E #A4FE7E #7EE4FE
split-complementary
#D87EFE #E4FE7E #7EFE98
monochromatic
#B305FD #C641FE #D87EFE #EABBFE #F6E1FF

Accessibility & contrast

On white

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

On black

8.34
#D87EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87EFE
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87EFE#FFFFFF#000000##000000
##D87EFE1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d87efe;
/* rgb */ color: rgb(216, 126, 254);
/* oklch */ color: oklch(73.9% 0.197 315.0);
Tailwind
colors: {
  custom: {
    50: '#e6a6ff',
    500: '#d87efe',
    950: '#000000',
  },
}
SCSS
$custom: #d87efe;
$custom-light: #e6a6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d87efe",
  "rgb": {
    "r": 216,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 282.188,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.73889,
    "c": 0.19669,
    "h": 315
  },
  "luminance": 0.36676
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D87EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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