#D87DFE#D87DFE

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

Color values

HEX#D87DFE
RGBrgb(216, 125, 254)
HSLhsl(282, 98%, 74%)
HSVhsv(282, 51%, 100%)
CMYKcmyk(15%, 50.8%, 0%, 0.4%)
CIE-LABlab(66.84, 55.86, -50.24)
CIE-LCHlch(66.84, 75.13, 318.03°)
OKLaboklab(73.75% 0.1404 -0.1399)
OKLCHoklch(73.75% 0.198 315.1)
XYZxyz(53.5391, 36.4235, 97.9568)
Luminance0.3642 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87DFE #A3FE7D
analogous
#987DFE #D87DFE #FE7DE3
triadic
#D87DFE #FED87D #7DFED8
tetradic
#D87DFE #FE987D #A3FE7D #7DE3FE
square
#D87DFE #FE987D #A3FE7D #7DE3FE
split-complementary
#D87DFE #E3FE7D #7DFE98
monochromatic
#B404FD #C640FE #D87DFE #EABAFE #F6E1FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D87DFE#FFFFFF#000000##000000
##D87DFE1.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)
#609DFF
Deuteranopia (green-blind)
#7CA5FB
Tritanopia (blue-blind)
#D691B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d87dfe;
/* rgb */ color: rgb(216, 125, 254);
/* oklch */ color: oklch(73.7% 0.198 315.1);
Tailwind
colors: {
  custom: {
    50: '#e6a5ff',
    500: '#d87dfe',
    950: '#000000',
  },
}
SCSS
$custom: #d87dfe;
$custom-light: #e6a5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d87dfe",
  "rgb": {
    "r": 216,
    "g": 125,
    "b": 254
  },
  "hsl": {
    "h": 282.326,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.73747,
    "c": 0.19824,
    "h": 315.1
  },
  "luminance": 0.36422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D87DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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