#D871FE#D871FE

#D871FE is a light, highly saturated purple. Relative luminance 0.336; OKLCH L 72.1% C 0.216 H 316.1°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#D871FE
RGBrgb(216, 113, 254)
HSLhsl(284, 99%, 72%)
HSVhsv(284, 56%, 100%)
CMYKcmyk(15%, 55.5%, 0%, 0.4%)
CIE-LABlab(64.62, 61.74, -53.76)
CIE-LCHlch(64.62, 81.87, 318.95°)
OKLaboklab(72.11% 0.1558 -0.1501)
OKLCHoklch(72.11% 0.216 316.1)
XYZxyz(52.1107, 33.5667, 97.4807)
Luminance0.3357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D871FE #97FE71
analogous
#9271FE #D871FE #FE71DD
triadic
#D871FE #FED871 #71FED8
tetradic
#D871FE #FE9271 #97FE71 #71DDFE
square
#D871FE #FE9271 #97FE71 #71DDFE
split-complementary
#D871FE #DDFE71 #71FE92
monochromatic
#B202F3 #C734FE #D871FE #E9AEFE #F7E1FF

Accessibility & contrast

On white

2.72
#D871FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#D871FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D871FE
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D871FE#FFFFFF#000000##000000
##D871FE1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E96FF
Deuteranopia (green-blind)
#72A0FA
Tritanopia (blue-blind)
#D688AD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d871fe;
/* rgb */ color: rgb(216, 113, 254);
/* oklch */ color: oklch(72.1% 0.216 316.1);
Tailwind
colors: {
  custom: {
    50: '#e79eff',
    500: '#d871fe',
    950: '#000000',
  },
}
SCSS
$custom: #d871fe;
$custom-light: #e79eff;
$custom-dark: #000000;
JSON
{
  "hex": "#d871fe",
  "rgb": {
    "r": 216,
    "g": 113,
    "b": 254
  },
  "hsl": {
    "h": 283.83,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.7211,
    "c": 0.21634,
    "h": 316.1
  },
  "luminance": 0.33565
}

Semantic roles & 50–950 ramp

primary
#D871FE
secondary
#DDF7D4
accent
#E6003E
background
#FEFAFF
surface
#FDF3FF
border
#D5CDD7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D871FE

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

Preview Lab → · Contrast checker → · Palette generator →

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