#D87FEB#D87FEB

#D87FEB is a light, vivid purple. Relative luminance 0.358; OKLCH L 73.1% C 0.176 H 320.4°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#D87FEB
RGBrgb(216, 127, 235)
HSLhsl(289, 73%, 71%)
HSVhsv(289, 46%, 92%)
CMYKcmyk(8.1%, 46%, 0%, 7.8%)
CIE-LABlab(66.35, 51.08, -40.57)
CIE-LCHlch(66.35, 65.24, 321.54°)
OKLaboklab(73.09% 0.1353 -0.112)
OKLCHoklch(73.09% 0.176 320.4)
XYZxyz(50.9018, 35.7777, 82.8057)
Luminance0.3578 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87FEB #92EB7F
analogous
#A27FEB #D87FEB #EB7FC8
triadic
#D87FEB #EBD87F #7FEBD8
tetradic
#D87FEB #EBA27F #92EB7F #7FC8EB
square
#D87FEB #EBA27F #92EB7F #7FC8EB
split-complementary
#D87FEB #C8EB7F #7FEBA2
monochromatic
#B020CF #C84AE3 #D87FEB #E8B4F3 #F7E5FB

Accessibility & contrast

On white

2.58
#D87FEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#D87FEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87FEB
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87FEB#FFFFFF#000000##000000
##D87FEB1.002.588.168.16
#FFFFFF2.581.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9BEF
Deuteranopia (green-blind)
#88A5E8
Tritanopia (blue-blind)
#D98DAA
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d87feb;
/* rgb */ color: rgb(216, 127, 235);
/* oklch */ color: oklch(73.1% 0.176 320.4);
Tailwind
colors: {
  custom: {
    50: '#e6a6f2',
    500: '#d87feb',
    950: '#000000',
  },
}
SCSS
$custom: #d87feb;
$custom-light: #e6a6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d87feb",
  "rgb": {
    "r": 216,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 289.444,
    "s": 72.973,
    "l": 70.98
  },
  "oklch": {
    "l": 0.73093,
    "c": 0.17562,
    "h": 320.4
  },
  "luminance": 0.35776
}

Semantic roles & 50–950 ramp

primary
#D87FEB
secondary
#DAF1D5
accent
#D51033
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D87FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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