#D87EFA#D87EFA

#D87EFA is a light, vivid purple. Relative luminance 0.364; OKLCH L 73.7% C 0.193 H 316.1°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#D87EFA
RGBrgb(216, 126, 250)
HSLhsl(284, 93%, 74%)
HSVhsv(284, 50%, 98%)
CMYKcmyk(13.6%, 49.6%, 0%, 2%)
CIE-LABlab(66.84, 54.55, -48.05)
CIE-LCHlch(66.84, 72.69, 318.62°)
OKLaboklab(73.69% 0.1387 -0.1336)
OKLCHoklch(73.69% 0.193 316.1)
XYZxyz(53.0325, 36.4244, 94.6610)
Luminance0.3642 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87EFA #A0FA7E
analogous
#9A7EFA #D87EFA #FA7EDE
triadic
#D87EFA #FAD87E #7EFAD8
tetradic
#D87EFA #FA9A7E #A0FA7E #7EDEFA
square
#D87EFA #FA9A7E #A0FA7E #7EDEFA
split-complementary
#D87EFA #DEFA7E #7EFA9A
monochromatic
#B409F4 #C643F8 #D87EFA #EAB9FC #F6E2FE

Accessibility & contrast

On white

2.53
#D87EFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#D87EFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87EFA
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87EFA#FFFFFF#000000##000000
##D87EFA1.002.538.288.28
#FFFFFF2.531.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#649DFE
Deuteranopia (green-blind)
#7FA5F7
Tritanopia (blue-blind)
#D691B1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d87efa;
/* rgb */ color: rgb(216, 126, 250);
/* oklch */ color: oklch(73.7% 0.193 316.1);
Tailwind
colors: {
  custom: {
    50: '#e6a6fc',
    500: '#d87efa',
    950: '#000000',
  },
}
SCSS
$custom: #d87efa;
$custom-light: #e6a6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d87efa",
  "rgb": {
    "r": 216,
    "g": 126,
    "b": 250
  },
  "hsl": {
    "h": 283.548,
    "s": 92.537,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73685,
    "c": 0.19254,
    "h": 316.1
  },
  "luminance": 0.36423
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D87EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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