#871D82#871D82

#871D82 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.179 H 330.2°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#871D82
RGBrgb(135, 29, 130)
HSLhsl(303, 65%, 32%)
HSVhsv(303, 79%, 53%)
CMYKcmyk(0%, 78.5%, 3.7%, 47.1%)
CIE-LABlab(33.23, 54.74, -32.18)
CIE-LCHlch(33.23, 63.49, 329.55°)
OKLaboklab(44.81% 0.1552 -0.0889)
OKLCHoklch(44.81% 0.179 330.2)
XYZxyz(14.4602, 7.6425, 21.8283)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D82 #1D8722
analogous
#571D87 #871D82 #871D4D
triadic
#871D82 #82871D #1D8287
tetradic
#871D82 #87571D #1D8722 #1D4D87
square
#871D82 #87571D #1D8722 #1D4D87
split-complementary
#871D82 #4D871D #1D8757
monochromatic
#220721 #551251 #871D82 #B928B3 #D747D1

Accessibility & contrast

On white

8.31
#871D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#871D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D82
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D82#FFFFFF#000000##FFFFFF
##871D821.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4585
Deuteranopia (green-blind)
#3E537F
Tritanopia (blue-blind)
#8C2C4F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871d82;
/* rgb */ color: rgb(135, 29, 130);
/* oklch */ color: oklch(44.8% 0.179 330.2);
Tailwind
colors: {
  custom: {
    50: '#ad66a7',
    500: '#871d82',
    950: '#000000',
  },
}
SCSS
$custom: #871d82;
$custom-light: #ad66a7;
$custom-dark: #000000;
JSON
{
  "hex": "#871d82",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 302.83,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4481,
    "c": 0.17884,
    "h": 330.2
  },
  "luminance": 0.07641
}

Semantic roles & 50–950 ramp

primary
#871D82
secondary
#46B94C
accent
#E84840
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #871D82

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

Preview Lab → · Contrast checker → · Palette generator →

#871D82 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva