#D87DEC#D87DEC

#D87DEC is a light, vivid purple. Relative luminance 0.353; OKLCH L 72.8% C 0.180 H 320.2°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#D87DEC
RGBrgb(216, 125, 236)
HSLhsl(289, 74%, 71%)
HSVhsv(289, 47%, 93%)
CMYKcmyk(8.5%, 47%, 0%, 7.5%)
CIE-LABlab(66.00, 52.30, -41.67)
CIE-LCHlch(66.00, 66.87, 321.45°)
OKLaboklab(72.85% 0.1382 -0.1151)
OKLCHoklch(72.85% 0.18 320.2)
XYZxyz(50.7910, 35.3242, 83.4834)
Luminance0.3532 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87DEC #91EC7D
analogous
#A07DEC #D87DEC #EC7DC8
triadic
#D87DEC #ECD87D #7DECD8
tetradic
#D87DEC #ECA07D #91EC7D #7DC8EC
square
#D87DEC #ECA07D #91EC7D #7DC8EC
split-complementary
#D87DEC #C8EC7D #7DECA0
monochromatic
#B01ED0 #C848E4 #D87DEC #E8B2F4 #F7E4FB

Accessibility & contrast

On white

2.60
#D87DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#D87DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87DEC
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87DEC#FFFFFF#000000##000000
##D87DEC1.002.608.068.06
#FFFFFF2.601.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9AF0
Deuteranopia (green-blind)
#86A4E9
Tritanopia (blue-blind)
#D98CAA
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d87dec;
/* rgb */ color: rgb(216, 125, 236);
/* oklch */ color: oklch(72.8% 0.180 320.2);
Tailwind
colors: {
  custom: {
    50: '#e6a5f2',
    500: '#d87dec',
    950: '#000000',
  },
}
SCSS
$custom: #d87dec;
$custom-light: #e6a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d87dec",
  "rgb": {
    "r": 216,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 289.189,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.72848,
    "c": 0.17987,
    "h": 320.2
  },
  "luminance": 0.35322
}

Semantic roles & 50–950 ramp

primary
#D87DEC
secondary
#D9F1D3
accent
#D70F33
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D87DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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