#871B82#871B82

#871B82 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.181 H 330.2°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#871B82
RGBrgb(135, 27, 130)
HSLhsl(303, 67%, 32%)
HSVhsv(303, 80%, 53%)
CMYKcmyk(0%, 80%, 3.7%, 47.1%)
CIE-LABlab(33.02, 55.33, -32.50)
CIE-LCHlch(33.02, 64.17, 329.57°)
OKLaboklab(44.66% 0.1569 -0.0898)
OKLCHoklch(44.66% 0.181 330.2)
XYZxyz(14.4128, 7.5476, 21.8125)
Luminance0.0755 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B82 #1B8720
analogous
#561B87 #871B82 #871B4C
triadic
#871B82 #82871B #1B8287
tetradic
#871B82 #87561B #1B8720 #1B4C87
square
#871B82 #87561B #1B8720 #1B4C87
split-complementary
#871B82 #4C871B #1B8756
monochromatic
#210720 #541151 #871B82 #BA25B3 #D943D2

Accessibility & contrast

On white

8.37
#871B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871B82
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B82#FFFFFF#000000##FFFFFF
##871B821.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094485
Deuteranopia (green-blind)
#3E537F
Tritanopia (blue-blind)
#8C2B4E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871b82;
/* rgb */ color: rgb(135, 27, 130);
/* oklch */ color: oklch(44.7% 0.181 330.2);
Tailwind
colors: {
  custom: {
    50: '#ae66a7',
    500: '#871b82',
    950: '#000000',
  },
}
SCSS
$custom: #871b82;
$custom-light: #ae66a7;
$custom-dark: #000000;
JSON
{
  "hex": "#871b82",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 302.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44664,
    "c": 0.18076,
    "h": 330.2
  },
  "luminance": 0.07546
}

Semantic roles & 50–950 ramp

primary
#871B82
secondary
#44BA49
accent
#EA463E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871B82

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

Preview Lab → · Contrast checker → · Palette generator →

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