#871C76#871C76

#871C76 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.171 H 335.6°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#871C76
RGBrgb(135, 28, 118)
HSLhsl(310, 66%, 32%)
HSVhsv(310, 79%, 53%)
CMYKcmyk(0%, 79.3%, 12.6%, 47.1%)
CIE-LABlab(32.46, 53.13, -25.85)
CIE-LCHlch(32.46, 59.09, 334.05°)
OKLaboklab(44.05% 0.1556 -0.0706)
OKLCHoklch(44.05% 0.171 335.6)
XYZxyz(13.6771, 7.2907, 17.8229)
Luminance0.0729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C76 #1C872D
analogous
#631C87 #871C76 #871C40
triadic
#871C76 #76871C #1C7687
tetradic
#871C76 #87631C #1C872D #1C4087
square
#871C76 #87631C #1C872D #1C4087
split-complementary
#871C76 #40871C #1C8763
monochromatic
#22071D #54114A #871C76 #BA27A2 #D845C1

Accessibility & contrast

On white

8.54
#871C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#871C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C76
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C76#FFFFFF#000000##FFFFFF
##871C761.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4278
Deuteranopia (green-blind)
#445274
Tritanopia (blue-blind)
#8E2548
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871c76;
/* rgb */ color: rgb(135, 28, 118);
/* oklch */ color: oklch(44.0% 0.171 335.6);
Tailwind
colors: {
  custom: {
    50: '#ae659e',
    500: '#871c76',
    950: '#000000',
  },
}
SCSS
$custom: #871c76;
$custom-light: #ae659e;
$custom-dark: #000000;
JSON
{
  "hex": "#871c76",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 118
  },
  "hsl": {
    "h": 309.533,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44046,
    "c": 0.17089,
    "h": 335.6
  },
  "luminance": 0.07289
}

Semantic roles & 50–950 ramp

primary
#871C76
secondary
#45BA57
accent
#E95A3F
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871C76

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

Preview Lab → · Contrast checker → · Palette generator →

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