#D87EF7#D87EF7

#D87EF7 is a light, vivid purple. Relative luminance 0.362; OKLCH L 73.5% C 0.189 H 316.9°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#D87EF7
RGBrgb(216, 126, 247)
HSLhsl(285, 88%, 73%)
HSVhsv(285, 49%, 97%)
CMYKcmyk(12.6%, 49%, 0%, 3.1%)
CIE-LABlab(66.70, 53.95, -46.63)
CIE-LCHlch(66.70, 71.30, 319.16°)
OKLaboklab(73.53% 0.1383 -0.1295)
OKLCHoklch(73.53% 0.189 316.9)
XYZxyz(52.5658, 36.2377, 92.2032)
Luminance0.3624 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87EF7 #9DF77E
analogous
#9B7EF7 #D87EF7 #F77ED9
triadic
#D87EF7 #F7D87E #7EF7D8
tetradic
#D87EF7 #F79B7E #9DF77E #7ED9F7
square
#D87EF7 #F79B7E #9DF77E #7ED9F7
split-complementary
#D87EF7 #D9F77E #7EF79B
monochromatic
#B30FEC #C744F3 #D87EF7 #E9B8FB #F6E2FD

Accessibility & contrast

On white

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

On black

8.25
#D87EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87EF7
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87EF7#FFFFFF#000000##000000
##D87EF71.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#669DFB
Deuteranopia (green-blind)
#81A5F4
Tritanopia (blue-blind)
#D790AF
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d87ef7;
/* rgb */ color: rgb(216, 126, 247);
/* oklch */ color: oklch(73.5% 0.189 316.9);
Tailwind
colors: {
  custom: {
    50: '#e6a6fa',
    500: '#d87ef7',
    950: '#000000',
  },
}
SCSS
$custom: #d87ef7;
$custom-light: #e6a6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d87ef7",
  "rgb": {
    "r": 216,
    "g": 126,
    "b": 247
  },
  "hsl": {
    "h": 284.628,
    "s": 88.321,
    "l": 73.137
  },
  "oklch": {
    "l": 0.73533,
    "c": 0.18945,
    "h": 316.9
  },
  "luminance": 0.36236
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D87EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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