#871B81#871B81

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

Color values

HEX#871B81
RGBrgb(135, 27, 129)
HSLhsl(303, 67%, 32%)
HSVhsv(303, 80%, 53%)
CMYKcmyk(0%, 80%, 4.4%, 47.1%)
CIE-LABlab(32.96, 55.16, -31.97)
CIE-LCHlch(32.96, 63.76, 329.90°)
OKLaboklab(44.6% 0.1569 -0.0883)
OKLCHoklch(44.6% 0.18 330.6)
XYZxyz(14.3460, 7.5209, 21.4607)
Luminance0.0752 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B81 #1B8721
analogous
#571B87 #871B81 #871B4B
triadic
#871B81 #81871B #1B8187
tetradic
#871B81 #87571B #1B8721 #1B4B87
square
#871B81 #87571B #1B8721 #1B4B87
split-complementary
#871B81 #4B871B #1B8757
monochromatic
#210720 #541150 #871B81 #BA25B2 #D943D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##871B81#FFFFFF#000000##FFFFFF
##871B811.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)
#0B4484
Deuteranopia (green-blind)
#3E537E
Tritanopia (blue-blind)
#8C2A4E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871b81;
/* rgb */ color: rgb(135, 27, 129);
/* oklch */ color: oklch(44.6% 0.180 330.6);
Tailwind
colors: {
  custom: {
    50: '#ae66a6',
    500: '#871b81',
    950: '#000000',
  },
}
SCSS
$custom: #871b81;
$custom-light: #ae66a6;
$custom-dark: #000000;
JSON
{
  "hex": "#871b81",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 303.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44604,
    "c": 0.18,
    "h": 330.6
  },
  "luminance": 0.0752
}

Semantic roles & 50–950 ramp

primary
#871B81
secondary
#44BA4A
accent
#EA483E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871B81

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

Preview Lab → · Contrast checker → · Palette generator →

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