#871C7D#871C7D

#871C7D is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.4% C 0.176 H 332.4°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#871C7D
RGBrgb(135, 28, 125)
HSLhsl(306, 66%, 32%)
HSVhsv(306, 79%, 53%)
CMYKcmyk(0%, 79.3%, 7.4%, 47.1%)
CIE-LABlab(32.84, 54.23, -29.66)
CIE-LCHlch(32.84, 61.81, 331.32°)
OKLaboklab(44.44% 0.156 -0.0816)
OKLCHoklch(44.44% 0.176 332.4)
XYZxyz(14.1087, 7.4633, 20.0955)
Luminance0.0746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C7D #1C8726
analogous
#5B1C87 #871C7D #871C48
triadic
#871C7D #7D871C #1C7D87
tetradic
#871C7D #875B1C #1C8726 #1C4887
square
#871C7D #875B1C #1C8726 #1C4887
split-complementary
#871C7D #48871C #1C875B
monochromatic
#22071F #54114E #871C7D #BA27AC #D845CB

Accessibility & contrast

On white

8.43
#871C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#871C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C7D
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C7D#FFFFFF#000000##FFFFFF
##871C7D1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144480
Deuteranopia (green-blind)
#41527A
Tritanopia (blue-blind)
#8D294C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871c7d;
/* rgb */ color: rgb(135, 28, 125);
/* oklch */ color: oklch(44.4% 0.176 332.4);
Tailwind
colors: {
  custom: {
    50: '#ae66a3',
    500: '#871c7d',
    950: '#000000',
  },
}
SCSS
$custom: #871c7d;
$custom-light: #ae66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#871c7d",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 305.607,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44441,
    "c": 0.17603,
    "h": 332.4
  },
  "luminance": 0.07462
}

Semantic roles & 50–950 ramp

primary
#871C7D
secondary
#45BA50
accent
#E94F3F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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