#871C81#871C81

#871C81 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.179 H 330.6°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#871C81
RGBrgb(135, 28, 129)
HSLhsl(303, 66%, 32%)
HSVhsv(303, 79%, 53%)
CMYKcmyk(0%, 79.3%, 4.4%, 47.1%)
CIE-LABlab(33.07, 54.87, -31.81)
CIE-LCHlch(33.07, 63.43, 329.90°)
OKLaboklab(44.68% 0.156 -0.0878)
OKLCHoklch(44.68% 0.179 330.6)
XYZxyz(14.3693, 7.5675, 21.4685)
Luminance0.0757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C81 #1C8722
analogous
#571C87 #871C81 #871C4C
triadic
#871C81 #81871C #1C8187
tetradic
#871C81 #87571C #1C8722 #1C4C87
square
#871C81 #87571C #1C8722 #1C4C87
split-complementary
#871C81 #4C871C #1C8757
monochromatic
#220720 #541151 #871C81 #BA27B1 #D845D0

Accessibility & contrast

On white

8.36
#871C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#871C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C81
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C81#FFFFFF#000000##FFFFFF
##871C811.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4484
Deuteranopia (green-blind)
#3F537E
Tritanopia (blue-blind)
#8C2B4E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871c81;
/* rgb */ color: rgb(135, 28, 129);
/* oklch */ color: oklch(44.7% 0.179 330.6);
Tailwind
colors: {
  custom: {
    50: '#ae66a6',
    500: '#871c81',
    950: '#000000',
  },
}
SCSS
$custom: #871c81;
$custom-light: #ae66a6;
$custom-dark: #000000;
JSON
{
  "hex": "#871c81",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 303.364,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44676,
    "c": 0.17905,
    "h": 330.6
  },
  "luminance": 0.07566
}

Semantic roles & 50–950 ramp

primary
#871C81
secondary
#45BA4B
accent
#E9493F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871C81

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

Preview Lab → · Contrast checker → · Palette generator →

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