#D87AFE#D87AFE

#D87AFE is a light, highly saturated purple. Relative luminance 0.357; OKLCH L 73.3% C 0.203 H 315.4°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#D87AFE
RGBrgb(216, 122, 254)
HSLhsl(283, 99%, 74%)
HSVhsv(283, 52%, 100%)
CMYKcmyk(15%, 52%, 0%, 0.4%)
CIE-LABlab(66.27, 57.35, -51.14)
CIE-LCHlch(66.27, 76.84, 318.28°)
OKLaboklab(73.32% 0.1443 -0.1425)
OKLCHoklch(73.32% 0.203 315.4)
XYZxyz(53.1650, 35.6754, 97.8322)
Luminance0.3567 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87AFE #A0FE7A
analogous
#967AFE #D87AFE #FE7AE2
triadic
#D87AFE #FED87A #7AFED8
tetradic
#D87AFE #FE967A #A0FE7A #7AE2FE
square
#D87AFE #FE967A #A0FE7A #7AE2FE
split-complementary
#D87AFE #E2FE7A #7AFE96
monochromatic
#B402FC #C63DFE #D87AFE #EAB7FE #F6E1FF

Accessibility & contrast

On white

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

On black

8.13
#D87AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87AFE
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87AFE#FFFFFF#000000##000000
##D87AFE1.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9BFF
Deuteranopia (green-blind)
#7AA4FB
Tritanopia (blue-blind)
#D68FB1
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d87afe;
/* rgb */ color: rgb(216, 122, 254);
/* oklch */ color: oklch(73.3% 0.203 315.4);
Tailwind
colors: {
  custom: {
    50: '#e7a4ff',
    500: '#d87afe',
    950: '#000000',
  },
}
SCSS
$custom: #d87afe;
$custom-light: #e7a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d87afe",
  "rgb": {
    "r": 216,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 282.727,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73325,
    "c": 0.20285,
    "h": 315.4
  },
  "luminance": 0.35674
}

Semantic roles & 50–950 ramp

primary
#D87AFE
secondary
#DEF7D4
accent
#E60042
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D87AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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