#D871FB#D871FB

#D871FB is a light, highly saturated purple. Relative luminance 0.334; OKLCH L 71.9% C 0.213 H 316.8°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#D871FB
RGBrgb(216, 113, 251)
HSLhsl(285, 95%, 71%)
HSVhsv(285, 55%, 98%)
CMYKcmyk(13.9%, 55%, 0%, 1.6%)
CIE-LABlab(64.46, 61.15, -52.36)
CIE-LCHlch(64.46, 80.50, 319.43°)
OKLaboklab(71.95% 0.1556 -0.146)
OKLCHoklch(71.95% 0.213 316.8)
XYZxyz(51.6341, 33.3760, 94.9704)
Luminance0.3337 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D871FB #94FB71
analogous
#9371FB #D871FB #FB71D9
triadic
#D871FB #FBD871 #71FBD8
tetradic
#D871FB #FB9371 #94FB71 #71D9FB
square
#D871FB #FB9371 #94FB71 #71D9FB
split-complementary
#D871FB #D9FB71 #71FB93
monochromatic
#B107EB #C835F9 #D871FB #E8ADFD #F7E1FE

Accessibility & contrast

On white

2.74
#D871FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#D871FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D871FB
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D871FB#FFFFFF#000000##000000
##D871FB1.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5096FF
Deuteranopia (green-blind)
#74A0F7
Tritanopia (blue-blind)
#D787AC
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #d871fb;
/* rgb */ color: rgb(216, 113, 251);
/* oklch */ color: oklch(71.9% 0.213 316.8);
Tailwind
colors: {
  custom: {
    50: '#e79efd',
    500: '#d871fb',
    950: '#000000',
  },
}
SCSS
$custom: #d871fb;
$custom-light: #e79efd;
$custom-dark: #000000;
JSON
{
  "hex": "#d871fb",
  "rgb": {
    "r": 216,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 284.783,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.71948,
    "c": 0.21339,
    "h": 316.8
  },
  "luminance": 0.33374
}

Semantic roles & 50–950 ramp

primary
#D871FB
secondary
#DBF6D2
accent
#E6003A
background
#FEFAFF
surface
#FDF3FF
border
#D5CDD7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D871FB

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

Preview Lab → · Contrast checker → · Palette generator →

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