#871C82#871C82

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

Color values

HEX#871C82
RGBrgb(135, 28, 130)
HSLhsl(303, 66%, 32%)
HSVhsv(303, 79%, 53%)
CMYKcmyk(0%, 79.3%, 3.7%, 47.1%)
CIE-LABlab(33.12, 55.03, -32.34)
CIE-LCHlch(33.12, 63.83, 329.56°)
OKLaboklab(44.74% 0.156 -0.0894)
OKLCHoklch(44.74% 0.18 330.2)
XYZxyz(14.4361, 7.5943, 21.8203)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C82 #1C8721
analogous
#571C87 #871C82 #871C4D
triadic
#871C82 #82871C #1C8287
tetradic
#871C82 #87571C #1C8721 #1C4D87
square
#871C82 #87571C #1C8721 #1C4D87
split-complementary
#871C82 #4D871C #1C8757
monochromatic
#220720 #541151 #871C82 #BA27B3 #D845D2

Accessibility & contrast

On white

8.34
#871C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#871C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C82
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C82#FFFFFF#000000##FFFFFF
##871C821.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871c82;
/* rgb */ color: rgb(135, 28, 130);
/* oklch */ color: oklch(44.7% 0.180 330.2);
Tailwind
colors: {
  custom: {
    50: '#ae66a7',
    500: '#871c82',
    950: '#000000',
  },
}
SCSS
$custom: #871c82;
$custom-light: #ae66a7;
$custom-dark: #000000;
JSON
{
  "hex": "#871c82",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 302.804,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44735,
    "c": 0.17982,
    "h": 330.2
  },
  "luminance": 0.07593
}

Semantic roles & 50–950 ramp

primary
#871C82
secondary
#45BA4A
accent
#E9473F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871C82

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

Preview Lab → · Contrast checker → · Palette generator →

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