#D871F0#D871F0

#D871F0 is a light, highly saturated purple. Relative luminance 0.327; OKLCH L 71.4% C 0.203 H 319.8°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#D871F0
RGBrgb(216, 113, 240)
HSLhsl(289, 81%, 69%)
HSVhsv(289, 53%, 94%)
CMYKcmyk(10%, 52.9%, 0%, 5.9%)
CIE-LABlab(63.92, 59.01, -47.16)
CIE-LCHlch(63.92, 75.54, 321.37°)
OKLaboklab(71.37% 0.1547 -0.1309)
OKLCHoklch(71.37% 0.203 319.8)
XYZxyz(49.9502, 32.7025, 86.1022)
Luminance0.3270 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D871F0 #89F071
analogous
#9971F0 #D871F0 #F071C9
triadic
#D871F0 #F0D871 #71F0D8
tetradic
#D871F0 #F09971 #89F071 #71C9F0
square
#D871F0 #F09971 #89F071 #71C9F0
split-complementary
#D871F0 #C9F071 #71F099
monochromatic
#AD16D1 #C93AEA #D871F0 #E7A8F6 #F6E0FC

Accessibility & contrast

On white

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

On black

7.54
#D871F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D871F0
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D871F0#FFFFFF#000000##000000
##D871F01.002.797.547.54
#FFFFFF2.791.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5994F4
Deuteranopia (green-blind)
#7A9FED
Tritanopia (blue-blind)
#D983A6
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d871f0;
/* rgb */ color: rgb(216, 113, 240);
/* oklch */ color: oklch(71.4% 0.203 319.8);
Tailwind
colors: {
  custom: {
    50: '#e79ef5',
    500: '#d871f0',
    950: '#000000',
  },
}
SCSS
$custom: #d871f0;
$custom-light: #e79ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#d871f0",
  "rgb": {
    "r": 216,
    "g": 113,
    "b": 240
  },
  "hsl": {
    "h": 288.661,
    "s": 80.892,
    "l": 69.216
  },
  "oklch": {
    "l": 0.71371,
    "c": 0.20268,
    "h": 319.8
  },
  "luminance": 0.327
}

Semantic roles & 50–950 ramp

primary
#D871F0
secondary
#D3F1CC
accent
#DD0831
background
#FEF9FF
surface
#FDF2FE
border
#D5CCD6
text
#160F17
muted
#847E85

Preview Lab

Preview with #D871F0

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

Preview Lab → · Contrast checker → · Palette generator →

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