#D871EA#D871EA

#D871EA is a light, vivid purple. Relative luminance 0.324; OKLCH L 71.1% C 0.197 H 321.5°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#D871EA
RGBrgb(216, 113, 234)
HSLhsl(291, 74%, 68%)
HSVhsv(291, 52%, 92%)
CMYKcmyk(7.7%, 51.7%, 0%, 8.2%)
CIE-LABlab(63.63, 57.87, -44.28)
CIE-LCHlch(63.63, 72.87, 322.58°)
OKLaboklab(71.07% 0.1541 -0.1226)
OKLCHoklch(71.07% 0.197 321.5)
XYZxyz(49.0736, 32.3519, 81.4855)
Luminance0.3235 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D871EA #83EA71
analogous
#9B71EA #D871EA #EA71C0
triadic
#D871EA #EAD871 #71EAD8
tetradic
#D871EA #EA9B71 #83EA71 #71C0EA
square
#D871EA #EA9B71 #83EA71 #71C0EA
split-complementary
#D871EA #C0EA71 #71EA9B
monochromatic
#AB1DC4 #C93CE2 #D871EA #E7A6F2 #F5DCFA

Accessibility & contrast

On white

2.81
#D871EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#D871EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D871EA
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D871EA#FFFFFF#000000##000000
##D871EA1.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D93EE
Deuteranopia (green-blind)
#7D9EE7
Tritanopia (blue-blind)
#DA81A3
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d871ea;
/* rgb */ color: rgb(216, 113, 234);
/* oklch */ color: oklch(71.1% 0.197 321.5);
Tailwind
colors: {
  custom: {
    50: '#e69ef1',
    500: '#d871ea',
    950: '#000000',
  },
}
SCSS
$custom: #d871ea;
$custom-light: #e69ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#d871ea",
  "rgb": {
    "r": 216,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 291.074,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.71066,
    "c": 0.19692,
    "h": 321.5
  },
  "luminance": 0.3235
}

Semantic roles & 50–950 ramp

primary
#D871EA
secondary
#CEEEC9
accent
#D60F2D
background
#FEF9FE
surface
#FDF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D871EA

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

Preview Lab → · Contrast checker → · Palette generator →

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