#D87EF5#D87EF5

#D87EF5 is a light, vivid purple. Relative luminance 0.361; OKLCH L 73.4% C 0.187 H 317.5°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#D87EF5
RGBrgb(216, 126, 245)
HSLhsl(285, 86%, 73%)
HSVhsv(285, 49%, 96%)
CMYKcmyk(11.8%, 48.6%, 0%, 3.9%)
CIE-LABlab(66.61, 53.55, -45.68)
CIE-LCHlch(66.61, 70.38, 319.54°)
OKLaboklab(73.43% 0.1381 -0.1267)
OKLCHoklch(73.43% 0.187 317.5)
XYZxyz(52.2589, 36.1149, 90.5866)
Luminance0.3611 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87EF5 #9BF57E
analogous
#9C7EF5 #D87EF5 #F57ED7
triadic
#D87EF5 #F5D87E #7EF5D8
tetradic
#D87EF5 #F59C7E #9BF57E #7ED7F5
square
#D87EF5 #F59C7E #9BF57E #7ED7F5
split-complementary
#D87EF5 #D7F57E #7EF59C
monochromatic
#B312E7 #C745F1 #D87EF5 #E9B7F9 #F6E3FD

Accessibility & contrast

On white

2.55
#D87EF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#D87EF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87EF5
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87EF5#FFFFFF#000000##000000
##D87EF51.002.558.228.22
#FFFFFF2.551.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#689CF9
Deuteranopia (green-blind)
#82A5F2
Tritanopia (blue-blind)
#D78FAE
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d87ef5;
/* rgb */ color: rgb(216, 126, 245);
/* oklch */ color: oklch(73.4% 0.187 317.5);
Tailwind
colors: {
  custom: {
    50: '#e6a6f9',
    500: '#d87ef5',
    950: '#000000',
  },
}
SCSS
$custom: #d87ef5;
$custom-light: #e6a6f9;
$custom-dark: #000000;
JSON
{
  "hex": "#d87ef5",
  "rgb": {
    "r": 216,
    "g": 126,
    "b": 245
  },
  "hsl": {
    "h": 285.378,
    "s": 85.612,
    "l": 72.745
  },
  "oklch": {
    "l": 0.73433,
    "c": 0.1874,
    "h": 317.5
  },
  "luminance": 0.36113
}

Semantic roles & 50–950 ramp

primary
#D87EF5
secondary
#DEF5D6
accent
#E2033A
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D87EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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