#871A85#871A85

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

Color values

HEX#871A85
RGBrgb(135, 26, 133)
HSLhsl(301, 68%, 32%)
HSVhsv(301, 81%, 53%)
CMYKcmyk(0%, 80.7%, 1.5%, 47.1%)
CIE-LABlab(33.10, 56.10, -34.25)
CIE-LCHlch(33.10, 65.73, 328.60°)
OKLaboklab(44.78% 0.1576 -0.0949)
OKLCHoklch(44.78% 0.184 329)
XYZxyz(14.5946, 7.5843, 22.8810)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A85 #1A871C
analogous
#531A87 #871A85 #871A4F
triadic
#871A85 #85871A #1A8587
tetradic
#871A85 #87531A #1A871C #1A4F87
square
#871A85 #87531A #1A871C #1A4F87
split-complementary
#871A85 #4F871A #1A8753
monochromatic
#200620 #541052 #871A85 #BA24B8 #DA41D8

Accessibility & contrast

On white

8.34
#871A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#871A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A85
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A85#FFFFFF#000000##FFFFFF
##871A851.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004588
Deuteranopia (green-blind)
#3B5382
Tritanopia (blue-blind)
#8C2C50
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871a85;
/* rgb */ color: rgb(135, 26, 133);
/* oklch */ color: oklch(44.8% 0.184 329.0);
Tailwind
colors: {
  custom: {
    50: '#ae65a9',
    500: '#871a85',
    950: '#000000',
  },
}
SCSS
$custom: #871a85;
$custom-light: #ae65a9;
$custom-dark: #000000;
JSON
{
  "hex": "#871a85",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 301.101,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44777,
    "c": 0.18397,
    "h": 329
  },
  "luminance": 0.07583
}

Semantic roles & 50–950 ramp

primary
#871A85
secondary
#42BA45
accent
#EB403D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #871A85

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

Preview Lab → · Contrast checker → · Palette generator →

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