#D87AF9#D87AF9

#D87AF9 is a light, vivid purple. Relative luminance 0.354; OKLCH L 73.1% C 0.198 H 316.7°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#D87AF9
RGBrgb(216, 122, 249)
HSLhsl(284, 91%, 73%)
HSVhsv(284, 51%, 98%)
CMYKcmyk(13.3%, 51%, 0%, 2.4%)
CIE-LABlab(66.03, 56.35, -48.79)
CIE-LCHlch(66.03, 74.54, 319.12°)
OKLaboklab(73.07% 0.1438 -0.1357)
OKLCHoklch(73.07% 0.198 316.7)
XYZxyz(52.3748, 35.3593, 93.6702)
Luminance0.3536 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87AF9 #9BF97A
analogous
#987AF9 #D87AF9 #F97ADB
triadic
#D87AF9 #F9D87A #7AF9D8
tetradic
#D87AF9 #F9987A #9BF97A #7ADBF9
square
#D87AF9 #F9987A #9BF97A #7ADBF9
split-complementary
#D87AF9 #DBF97A #7AF998
monochromatic
#B30BEE #C73FF6 #D87AF9 #E9B5FC #F6E2FE

Accessibility & contrast

On white

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

On black

8.07
#D87AF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87AF9
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87AF9#FFFFFF#000000##000000
##D87AF91.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9BFD
Deuteranopia (green-blind)
#7DA3F6
Tritanopia (blue-blind)
#D78DAE
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d87af9;
/* rgb */ color: rgb(216, 122, 249);
/* oklch */ color: oklch(73.1% 0.198 316.7);
Tailwind
colors: {
  custom: {
    50: '#e6a3fc',
    500: '#d87af9',
    950: '#000000',
  },
}
SCSS
$custom: #d87af9;
$custom-light: #e6a3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d87af9",
  "rgb": {
    "r": 216,
    "g": 122,
    "b": 249
  },
  "hsl": {
    "h": 284.409,
    "s": 91.367,
    "l": 72.745
  },
  "oklch": {
    "l": 0.73066,
    "c": 0.19776,
    "h": 316.7
  },
  "luminance": 0.35358
}

Semantic roles & 50–950 ramp

primary
#D87AF9
secondary
#DEF6D5
accent
#E6003C
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D87AF9

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

Preview Lab → · Contrast checker → · Palette generator →

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