#D871CA#D871CA

#D871CA is a light, vivid purple. Relative luminance 0.307; OKLCH L 69.6% C 0.168 H 332.5°. Best body text is #000000 at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#D871CA
RGBrgb(216, 113, 202)
HSLhsl(308, 57%, 65%)
HSVhsv(308, 48%, 85%)
CMYKcmyk(0%, 47.7%, 6.5%, 15.3%)
CIE-LABlab(62.23, 52.15, -28.56)
CIE-LCHlch(62.23, 59.46, 331.30°)
OKLaboklab(69.57% 0.149 -0.0776)
OKLCHoklch(69.57% 0.168 332.5)
XYZxyz(44.8845, 30.6762, 59.4226)
Luminance0.3067 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D871CA #71D87F
analogous
#B271D8 #D871CA #D87197
triadic
#D871CA #CAD871 #71CAD8
tetradic
#D871CA #D8B271 #71D87F #7197D8
square
#D871CA #D8B271 #71D87F #7197D8
split-complementary
#D871CA #97D871 #71D8B2
monochromatic
#A22D92 #CB41B8 #D871CA #E5A1DC #F2D1EE

Accessibility & contrast

On white

2.94
#D871CA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.13
#D871CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D871CA
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D871CA#FFFFFF#000000##000000
##D871CA1.002.947.137.13
#FFFFFF2.941.0021.0021.00
#0000007.1321.001.001.00
##0000007.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E8DCD
Deuteranopia (green-blind)
#8B9CC7
Tritanopia (blue-blind)
#E07894
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #d871ca;
/* rgb */ color: rgb(216, 113, 202);
/* oklch */ color: oklch(69.6% 0.168 332.5);
Tailwind
colors: {
  custom: {
    50: '#e69dda',
    500: '#d871ca',
    950: '#000000',
  },
}
SCSS
$custom: #d871ca;
$custom-light: #e69dda;
$custom-dark: #000000;
JSON
{
  "hex": "#d871ca",
  "rgb": {
    "r": 216,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 308.155,
    "s": 56.906,
    "l": 64.51
  },
  "oklch": {
    "l": 0.69573,
    "c": 0.16798,
    "h": 332.5
  },
  "luminance": 0.30673
}

Semantic roles & 50–950 ramp

primary
#D871CA
secondary
#C1E4C5
accent
#C43721
background
#FEF9FD
surface
#FDF2FA
border
#D5CCD3
text
#160F15
muted
#847E83

Preview Lab

Preview with #D871CA

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

Preview Lab → · Contrast checker → · Palette generator →

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