#D87DF5#D87DF5

#D87DF5 is a light, vivid purple. Relative luminance 0.359; OKLCH L 73.3% C 0.189 H 317.5°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#D87DF5
RGBrgb(216, 125, 245)
HSLhsl(286, 86%, 73%)
HSVhsv(286, 49%, 96%)
CMYKcmyk(11.8%, 49%, 0%, 3.9%)
CIE-LABlab(66.41, 54.05, -45.98)
CIE-LCHlch(66.41, 70.97, 319.61°)
OKLaboklab(73.29% 0.1394 -0.1276)
OKLCHoklch(73.29% 0.189 317.5)
XYZxyz(52.1316, 35.8605, 90.5441)
Luminance0.3586 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87DF5 #9AF57D
analogous
#9C7DF5 #D87DF5 #F57DD6
triadic
#D87DF5 #F5D87D #7DF5D8
tetradic
#D87DF5 #F59C7D #9AF57D #7DD6F5
square
#D87DF5 #F59C7D #9AF57D #7DD6F5
split-complementary
#D87DF5 #D6F57D #7DF59C
monochromatic
#B312E6 #C744F1 #D87DF5 #E9B6F9 #F6E3FD

Accessibility & contrast

On white

2.57
#D87DF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#D87DF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87DF5
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87DF5#FFFFFF#000000##000000
##D87DF51.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#669CF9
Deuteranopia (green-blind)
#81A4F2
Tritanopia (blue-blind)
#D88EAE
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d87df5;
/* rgb */ color: rgb(216, 125, 245);
/* oklch */ color: oklch(73.3% 0.189 317.5);
Tailwind
colors: {
  custom: {
    50: '#e6a5f9',
    500: '#d87df5',
    950: '#000000',
  },
}
SCSS
$custom: #d87df5;
$custom-light: #e6a5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#d87df5",
  "rgb": {
    "r": 216,
    "g": 125,
    "b": 245
  },
  "hsl": {
    "h": 285.5,
    "s": 85.714,
    "l": 72.549
  },
  "oklch": {
    "l": 0.73289,
    "c": 0.18898,
    "h": 317.5
  },
  "luminance": 0.35859
}

Semantic roles & 50–950 ramp

primary
#D87DF5
secondary
#DEF5D6
accent
#E20339
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D87DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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