#D871ED#D871ED

#D871ED is a light, vivid purple. Relative luminance 0.325; OKLCH L 71.2% C 0.200 H 320.6°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#D871ED
RGBrgb(216, 113, 237)
HSLhsl(290, 78%, 69%)
HSVhsv(290, 52%, 93%)
CMYKcmyk(8.9%, 52.3%, 0%, 7.1%)
CIE-LABlab(63.77, 58.44, -45.72)
CIE-LCHlch(63.77, 74.20, 321.96°)
OKLaboklab(71.22% 0.1544 -0.1268)
OKLCHoklch(71.22% 0.2 320.6)
XYZxyz(49.5083, 32.5257, 83.7746)
Luminance0.3252 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D871ED #86ED71
analogous
#9A71ED #D871ED #ED71C4
triadic
#D871ED #EDD871 #71EDD8
tetradic
#D871ED #ED9A71 #86ED71 #71C4ED
square
#D871ED #ED9A71 #86ED71 #71C4ED
split-complementary
#D871ED #C4ED71 #71ED9A
monochromatic
#AC1ACA #C93BE6 #D871ED #E7A7F4 #F6DEFB

Accessibility & contrast

On white

2.80
#D871ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#D871ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D871ED
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D871ED#FFFFFF#000000##000000
##D871ED1.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B93F1
Deuteranopia (green-blind)
#7C9EEA
Tritanopia (blue-blind)
#DA82A5
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d871ed;
/* rgb */ color: rgb(216, 113, 237);
/* oklch */ color: oklch(71.2% 0.200 320.6);
Tailwind
colors: {
  custom: {
    50: '#e69ef3',
    500: '#d871ed',
    950: '#000000',
  },
}
SCSS
$custom: #d871ed;
$custom-light: #e69ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#d871ed",
  "rgb": {
    "r": 216,
    "g": 113,
    "b": 237
  },
  "hsl": {
    "h": 289.839,
    "s": 77.5,
    "l": 68.627
  },
  "oklch": {
    "l": 0.71218,
    "c": 0.19979,
    "h": 320.6
  },
  "luminance": 0.32524
}

Semantic roles & 50–950 ramp

primary
#D871ED
secondary
#D1EFCA
accent
#DA0C2F
background
#FEF9FE
surface
#FDF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D871ED

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

Preview Lab → · Contrast checker → · Palette generator →

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