#D87EF2#D87EF2

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

Color values

HEX#D87EF2
RGBrgb(216, 126, 242)
HSLhsl(287, 82%, 72%)
HSVhsv(287, 48%, 95%)
CMYKcmyk(10.7%, 47.9%, 0%, 5.1%)
CIE-LABlab(66.47, 52.96, -44.25)
CIE-LCHlch(66.47, 69.01, 320.12°)
OKLaboklab(73.29% 0.1377 -0.1226)
OKLCHoklch(73.29% 0.184 318.3)
XYZxyz(51.8046, 35.9332, 88.1941)
Luminance0.3593 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87EF2 #98F27E
analogous
#9E7EF2 #D87EF2 #F27ED2
triadic
#D87EF2 #F2D87E #7EF2D8
tetradic
#D87EF2 #F29E7E #98F27E #7ED2F2
square
#D87EF2 #F29E7E #98F27E #7ED2F2
split-complementary
#D87EF2 #D2F27E #7EF29E
monochromatic
#B216DF #C746EC #D87EF2 #E9B6F8 #F7E3FC

Accessibility & contrast

On white

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

On black

8.19
#D87EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87EF2
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87EF2#FFFFFF#000000##000000
##D87EF21.002.578.198.19
#FFFFFF2.571.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#699CF6
Deuteranopia (green-blind)
#84A5EF
Tritanopia (blue-blind)
#D88EAD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d87ef2;
/* rgb */ color: rgb(216, 126, 242);
/* oklch */ color: oklch(73.3% 0.184 318.3);
Tailwind
colors: {
  custom: {
    50: '#e6a6f7',
    500: '#d87ef2',
    950: '#000000',
  },
}
SCSS
$custom: #d87ef2;
$custom-light: #e6a6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d87ef2",
  "rgb": {
    "r": 216,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 286.552,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.73285,
    "c": 0.18433,
    "h": 318.3
  },
  "luminance": 0.35931
}

Semantic roles & 50–950 ramp

primary
#D87EF2
secondary
#DDF4D7
accent
#DE0738
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D87EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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