#871C7F#871C7F

#871C7F is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.178 H 331.5°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#871C7F
RGBrgb(135, 28, 127)
HSLhsl(304, 66%, 32%)
HSVhsv(304, 79%, 53%)
CMYKcmyk(0%, 79.3%, 5.9%, 47.1%)
CIE-LABlab(32.95, 54.55, -30.74)
CIE-LCHlch(32.95, 62.61, 330.60°)
OKLaboklab(44.56% 0.156 -0.0847)
OKLCHoklch(44.56% 0.178 331.5)
XYZxyz(14.2377, 7.5149, 20.7752)
Luminance0.0751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C7F #1C8724
analogous
#5A1C87 #871C7F #871C4A
triadic
#871C7F #7F871C #1C7F87
tetradic
#871C7F #875A1C #1C8724 #1C4A87
square
#871C7F #875A1C #1C8724 #1C4A87
split-complementary
#871C7F #4A871C #1C875A
monochromatic
#220720 #54114F #871C7F #BA27AF #D845CD

Accessibility & contrast

On white

8.39
#871C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#871C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C7F
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C7F#FFFFFF#000000##FFFFFF
##871C7F1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114482
Deuteranopia (green-blind)
#40537C
Tritanopia (blue-blind)
#8D2A4D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871c7f;
/* rgb */ color: rgb(135, 28, 127);
/* oklch */ color: oklch(44.6% 0.178 331.5);
Tailwind
colors: {
  custom: {
    50: '#ae66a4',
    500: '#871c7f',
    950: '#000000',
  },
}
SCSS
$custom: #871c7f;
$custom-light: #ae66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#871c7f",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 304.486,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44557,
    "c": 0.17753,
    "h": 331.5
  },
  "luminance": 0.07514
}

Semantic roles & 50–950 ramp

primary
#871C7F
secondary
#45BA4E
accent
#E94C3F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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