#D871EF#D871EF

#D871EF is a light, highly saturated purple. Relative luminance 0.326; OKLCH L 71.3% C 0.202 H 320.0°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#D871EF
RGBrgb(216, 113, 239)
HSLhsl(289, 80%, 69%)
HSVhsv(289, 53%, 94%)
CMYKcmyk(9.6%, 52.7%, 0%, 6.3%)
CIE-LABlab(63.87, 58.82, -46.68)
CIE-LCHlch(63.87, 75.09, 321.57°)
OKLaboklab(71.32% 0.1546 -0.1295)
OKLCHoklch(71.32% 0.202 320)
XYZxyz(49.8021, 32.6432, 85.3221)
Luminance0.3264 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D871EF #88EF71
analogous
#9971EF #D871EF #EF71C7
triadic
#D871EF #EFD871 #71EFD8
tetradic
#D871EF #EF9971 #88EF71 #71C7EF
square
#D871EF #EF9971 #88EF71 #71C7EF
split-complementary
#D871EF #C7EF71 #71EF99
monochromatic
#AD17CE #C93AE9 #D871EF #E7A8F5 #F6DFFB

Accessibility & contrast

On white

2.79
#D871EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#D871EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D871EF
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D871EF#FFFFFF#000000##000000
##D871EF1.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A94F3
Deuteranopia (green-blind)
#7B9FEC
Tritanopia (blue-blind)
#D983A6
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d871ef;
/* rgb */ color: rgb(216, 113, 239);
/* oklch */ color: oklch(71.3% 0.202 320.0);
Tailwind
colors: {
  custom: {
    50: '#e69ef5',
    500: '#d871ef',
    950: '#000000',
  },
}
SCSS
$custom: #d871ef;
$custom-light: #e69ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#d871ef",
  "rgb": {
    "r": 216,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 289.048,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.71319,
    "c": 0.20172,
    "h": 320
  },
  "luminance": 0.32641
}

Semantic roles & 50–950 ramp

primary
#D871EF
secondary
#D2F0CB
accent
#DC0930
background
#FEF9FF
surface
#FDF2FE
border
#D5CCD6
text
#160F17
muted
#847E85

Preview Lab

Preview with #D871EF

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

Preview Lab → · Contrast checker → · Palette generator →

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