#D87DFD#D87DFD

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

Color values

HEX#D87DFD
RGBrgb(216, 125, 253)
HSLhsl(283, 97%, 74%)
HSVhsv(283, 51%, 99%)
CMYKcmyk(14.6%, 50.6%, 0%, 0.8%)
CIE-LABlab(66.79, 55.65, -49.77)
CIE-LCHlch(66.79, 74.66, 318.19°)
OKLaboklab(73.69% 0.1403 -0.1386)
OKLCHoklch(73.69% 0.197 315.4)
XYZxyz(53.3794, 36.3596, 97.1157)
Luminance0.3636 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87DFD #A2FD7D
analogous
#987DFD #D87DFD #FD7DE2
triadic
#D87DFD #FDD87D #7DFDD8
tetradic
#D87DFD #FD987D #A2FD7D #7DE2FD
square
#D87DFD #FD987D #A2FD7D #7DE2FD
split-complementary
#D87DFD #E2FD7D #7DFD98
monochromatic
#B404FB #C641FC #D87DFD #EAB9FE #F6E1FF

Accessibility & contrast

On white

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

On black

8.27
#D87DFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87DFD
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87DFD#FFFFFF#000000##000000
##D87DFD1.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#619DFF
Deuteranopia (green-blind)
#7DA5FA
Tritanopia (blue-blind)
#D691B2
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d87dfd;
/* rgb */ color: rgb(216, 125, 253);
/* oklch */ color: oklch(73.7% 0.197 315.4);
Tailwind
colors: {
  custom: {
    50: '#e6a5fe',
    500: '#d87dfd',
    950: '#000000',
  },
}
SCSS
$custom: #d87dfd;
$custom-light: #e6a5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d87dfd",
  "rgb": {
    "r": 216,
    "g": 125,
    "b": 253
  },
  "hsl": {
    "h": 282.656,
    "s": 96.97,
    "l": 74.118
  },
  "oklch": {
    "l": 0.73695,
    "c": 0.19721,
    "h": 315.4
  },
  "luminance": 0.36358
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D87DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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