#871C7A#871C7A

#871C7A is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.174 H 333.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#871C7A
RGBrgb(135, 28, 122)
HSLhsl(307, 66%, 32%)
HSVhsv(307, 79%, 53%)
CMYKcmyk(0%, 79.3%, 9.6%, 47.1%)
CIE-LABlab(32.67, 53.75, -28.04)
CIE-LCHlch(32.67, 60.63, 332.45°)
OKLaboklab(44.27% 0.1558 -0.0769)
OKLCHoklch(44.27% 0.174 333.7)
XYZxyz(13.9199, 7.3878, 19.1014)
Luminance0.0739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C7A #1C8729
analogous
#5F1C87 #871C7A #871C44
triadic
#871C7A #7A871C #1C7A87
tetradic
#871C7A #875F1C #1C8729 #1C4487
square
#871C7A #875F1C #1C8729 #1C4487
split-complementary
#871C7A #44871C #1C875F
monochromatic
#22071E #54114C #871C7A #BA27A8 #D845C7

Accessibility & contrast

On white

8.48
#871C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#871C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C7A
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C7A#FFFFFF#000000##FFFFFF
##871C7A1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18437C
Deuteranopia (green-blind)
#425278
Tritanopia (blue-blind)
#8E274A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871c7a;
/* rgb */ color: rgb(135, 28, 122);
/* oklch */ color: oklch(44.3% 0.174 333.7);
Tailwind
colors: {
  custom: {
    50: '#ae66a1',
    500: '#871c7a',
    950: '#000000',
  },
}
SCSS
$custom: #871c7a;
$custom-light: #ae66a1;
$custom-dark: #000000;
JSON
{
  "hex": "#871c7a",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 307.29,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44269,
    "c": 0.1738,
    "h": 333.7
  },
  "luminance": 0.07387
}

Semantic roles & 50–950 ramp

primary
#871C7A
secondary
#45BA53
accent
#E9543F
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #871C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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