#D871DC#D871DC

#D871DC is a light, vivid purple. Relative luminance 0.316; OKLCH L 70.4% C 0.184 H 325.9°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#D871DC
RGBrgb(216, 113, 220)
HSLhsl(298, 60%, 65%)
HSVhsv(298, 49%, 86%)
CMYKcmyk(1.8%, 48.6%, 0%, 13.7%)
CIE-LABlab(62.99, 55.30, -37.49)
CIE-LCHlch(62.99, 66.80, 325.86°)
OKLaboklab(70.38% 0.1522 -0.103)
OKLCHoklch(70.38% 0.184 325.9)
XYZxyz(47.1413, 31.5789, 71.3085)
Luminance0.3158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D871DC #75DC71
analogous
#A271DC #D871DC #DC71AA
triadic
#D871DC #DCD871 #71DCD8
tetradic
#D871DC #DCA271 #75DC71 #71AADC
square
#D871DC #DCA271 #75DC71 #71AADC
split-complementary
#D871DC #AADC71 #71DCA2
monochromatic
#A42AA9 #CB40D0 #D871DC #E5A2E8 #F3D3F4

Accessibility & contrast

On white

2.87
#D871DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.32
#D871DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D871DC
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D871DC#FFFFFF#000000##000000
##D871DC1.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6690E0
Deuteranopia (green-blind)
#849DD9
Tritanopia (blue-blind)
#DD7D9D
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d871dc;
/* rgb */ color: rgb(216, 113, 220);
/* oklch */ color: oklch(70.4% 0.184 325.9);
Tailwind
colors: {
  custom: {
    50: '#e69de7',
    500: '#d871dc',
    950: '#000000',
  },
}
SCSS
$custom: #d871dc;
$custom-light: #e69de7;
$custom-dark: #000000;
JSON
{
  "hex": "#d871dc",
  "rgb": {
    "r": 216,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 297.757,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.70385,
    "c": 0.18383,
    "h": 325.9
  },
  "luminance": 0.31576
}

Semantic roles & 50–950 ramp

primary
#D871DC
secondary
#C4E6C2
accent
#C81D24
background
#FEF9FE
surface
#FDF2FC
border
#D5CCD5
text
#160F16
muted
#847E84

Preview Lab

Preview with #D871DC

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

Preview Lab → · Contrast checker → · Palette generator →

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