#871C79#871C79

#871C79 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.173 H 334.2°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#871C79
RGBrgb(135, 28, 121)
HSLhsl(308, 66%, 32%)
HSVhsv(308, 79%, 53%)
CMYKcmyk(0%, 79.3%, 10.4%, 47.1%)
CIE-LABlab(32.62, 53.60, -27.50)
CIE-LCHlch(32.62, 60.24, 332.84°)
OKLaboklab(44.21% 0.1558 -0.0753)
OKLCHoklch(44.21% 0.173 334.2)
XYZxyz(13.8583, 7.3631, 18.7768)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C79 #1C872A
analogous
#5F1C87 #871C79 #871C44
triadic
#871C79 #79871C #1C7987
tetradic
#871C79 #875F1C #1C872A #1C4487
square
#871C79 #875F1C #1C872A #1C4487
split-complementary
#871C79 #44871C #1C875F
monochromatic
#22071E #54114C #871C79 #BA27A6 #D845C5

Accessibility & contrast

On white

8.49
#871C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#871C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C79
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C79#FFFFFF#000000##FFFFFF
##871C791.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19437B
Deuteranopia (green-blind)
#435277
Tritanopia (blue-blind)
#8E2749
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871c79;
/* rgb */ color: rgb(135, 28, 121);
/* oklch */ color: oklch(44.2% 0.173 334.2);
Tailwind
colors: {
  custom: {
    50: '#ae66a0',
    500: '#871c79',
    950: '#000000',
  },
}
SCSS
$custom: #871c79;
$custom-light: #ae66a0;
$custom-dark: #000000;
JSON
{
  "hex": "#871c79",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 307.85,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44212,
    "c": 0.17306,
    "h": 334.2
  },
  "luminance": 0.07362
}

Semantic roles & 50–950 ramp

primary
#871C79
secondary
#45BA54
accent
#E9553F
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871C79

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

Preview Lab → · Contrast checker → · Palette generator →

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