#871A82#871A82

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

Color values

HEX#871A82
RGBrgb(135, 26, 130)
HSLhsl(303, 68%, 32%)
HSVhsv(303, 81%, 53%)
CMYKcmyk(0%, 80.7%, 3.7%, 47.1%)
CIE-LABlab(32.92, 55.61, -32.66)
CIE-LCHlch(32.92, 64.49, 329.57°)
OKLaboklab(44.59% 0.1577 -0.0903)
OKLCHoklch(44.59% 0.182 330.2)
XYZxyz(14.3903, 7.5026, 21.8050)
Luminance0.0750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A82 #1A871F
analogous
#561A87 #871A82 #871A4C
triadic
#871A82 #82871A #1A8287
tetradic
#871A82 #87561A #1A871F #1A4C87
square
#871A82 #87561A #1A871F #1A4C87
split-complementary
#871A82 #4C871A #1A8756
monochromatic
#20061F #541051 #871A82 #BA24B3 #DA41D3

Accessibility & contrast

On white

8.40
#871A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871A82
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A82#FFFFFF#000000##FFFFFF
##871A821.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074485
Deuteranopia (green-blind)
#3D527F
Tritanopia (blue-blind)
#8C2A4E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871a82;
/* rgb */ color: rgb(135, 26, 130);
/* oklch */ color: oklch(44.6% 0.182 330.2);
Tailwind
colors: {
  custom: {
    50: '#ae65a7',
    500: '#871a82',
    950: '#000000',
  },
}
SCSS
$custom: #871a82;
$custom-light: #ae65a7;
$custom-dark: #000000;
JSON
{
  "hex": "#871a82",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 302.752,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44594,
    "c": 0.18169,
    "h": 330.2
  },
  "luminance": 0.07501
}

Semantic roles & 50–950 ramp

primary
#871A82
secondary
#42BA48
accent
#EB453D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871A82

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

Preview Lab → · Contrast checker → · Palette generator →

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