#871B85#871B85

#871B85 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.183 H 328.9°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#871B85
RGBrgb(135, 27, 133)
HSLhsl(301, 67%, 32%)
HSVhsv(301, 80%, 53%)
CMYKcmyk(0%, 80%, 1.5%, 47.1%)
CIE-LABlab(33.20, 55.82, -34.09)
CIE-LCHlch(33.20, 65.41, 328.58°)
OKLaboklab(44.85% 0.1568 -0.0944)
OKLCHoklch(44.85% 0.183 328.9)
XYZxyz(14.6171, 7.6293, 22.8885)
Luminance0.0763 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B85 #1B871D
analogous
#531B87 #871B85 #871B4F
triadic
#871B85 #85871B #1B8587
tetradic
#871B85 #87531B #1B871D #1B4F87
square
#871B85 #87531B #1B871D #1B4F87
split-complementary
#871B85 #4F871B #1B8753
monochromatic
#210721 #541153 #871B85 #BA25B7 #D943D7

Accessibility & contrast

On white

8.31
#871B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#871B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B85
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B85#FFFFFF#000000##FFFFFF
##871B851.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014588
Deuteranopia (green-blind)
#3C5382
Tritanopia (blue-blind)
#8C2D50
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871b85;
/* rgb */ color: rgb(135, 27, 133);
/* oklch */ color: oklch(44.8% 0.183 328.9);
Tailwind
colors: {
  custom: {
    50: '#ae66a9',
    500: '#871b85',
    950: '#000000',
  },
}
SCSS
$custom: #871b85;
$custom-light: #ae66a9;
$custom-dark: #000000;
JSON
{
  "hex": "#871b85",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 301.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44846,
    "c": 0.18306,
    "h": 328.9
  },
  "luminance": 0.07628
}

Semantic roles & 50–950 ramp

primary
#871B85
secondary
#44BA46
accent
#EA413E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #871B85

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

Preview Lab → · Contrast checker → · Palette generator →

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