#871A84#871A84

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

Color values

HEX#871A84
RGBrgb(135, 26, 132)
HSLhsl(302, 68%, 32%)
HSVhsv(302, 81%, 53%)
CMYKcmyk(0%, 80.7%, 2.2%, 47.1%)
CIE-LABlab(33.04, 55.93, -33.72)
CIE-LCHlch(33.04, 65.31, 328.92°)
OKLaboklab(44.72% 0.1577 -0.0933)
OKLCHoklch(44.72% 0.183 329.4)
XYZxyz(14.5258, 7.5568, 22.5189)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A84 #1A871D
analogous
#541A87 #871A84 #871A4E
triadic
#871A84 #84871A #1A8487
tetradic
#871A84 #87541A #1A871D #1A4E87
square
#871A84 #87541A #1A871D #1A4E87
split-complementary
#871A84 #4E871A #1A8754
monochromatic
#200620 #541052 #871A84 #BA24B6 #DA41D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##871A84#FFFFFF#000000##FFFFFF
##871A841.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)
#024587
Deuteranopia (green-blind)
#3C5381
Tritanopia (blue-blind)
#8C2C4F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871a84;
/* rgb */ color: rgb(135, 26, 132);
/* oklch */ color: oklch(44.7% 0.183 329.4);
Tailwind
colors: {
  custom: {
    50: '#ae65a8',
    500: '#871a84',
    950: '#000000',
  },
}
SCSS
$custom: #871a84;
$custom-light: #ae65a8;
$custom-dark: #000000;
JSON
{
  "hex": "#871a84",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 301.651,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44716,
    "c": 0.18322,
    "h": 329.4
  },
  "luminance": 0.07556
}

Semantic roles & 50–950 ramp

primary
#871A84
secondary
#42BA46
accent
#EB423D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #871A84

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

Preview Lab → · Contrast checker → · Palette generator →

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