#D87AFA#D87AFA

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

Color values

HEX#D87AFA
RGBrgb(216, 122, 250)
HSLhsl(284, 93%, 73%)
HSVhsv(284, 51%, 98%)
CMYKcmyk(13.6%, 51.2%, 0%, 2%)
CIE-LABlab(66.08, 56.55, -49.26)
CIE-LCHlch(66.08, 75.00, 318.94°)
OKLaboklab(73.12% 0.1439 -0.1371)
OKLCHoklch(73.12% 0.199 316.4)
XYZxyz(52.5312, 35.4218, 94.4939)
Luminance0.3542 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D87AFA #9CFA7A
analogous
#987AFA #D87AFA #FA7ADC
triadic
#D87AFA #FAD87A #7AFAD8
tetradic
#D87AFA #FA987A #9CFA7A #7ADCFA
square
#D87AFA #FA987A #9CFA7A #7ADCFA
split-complementary
#D87AFA #DCFA7A #7AFA98
monochromatic
#B309F1 #C73FF8 #D87AFA #E9B5FC #F6E2FE

Accessibility & contrast

On white

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

On black

8.08
#D87AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D87AFA
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D87AFA#FFFFFF#000000##000000
##D87AFA1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9BFE
Deuteranopia (green-blind)
#7CA3F7
Tritanopia (blue-blind)
#D78DAF
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d87afa;
/* rgb */ color: rgb(216, 122, 250);
/* oklch */ color: oklch(73.1% 0.199 316.4);
Tailwind
colors: {
  custom: {
    50: '#e6a3fc',
    500: '#d87afa',
    950: '#000000',
  },
}
SCSS
$custom: #d87afa;
$custom-light: #e6a3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d87afa",
  "rgb": {
    "r": 216,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 284.063,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.73117,
    "c": 0.19877,
    "h": 316.4
  },
  "luminance": 0.3542
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D87AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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