#871B7A#871B7A

#871B7A is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.175 H 333.7°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#871B7A
RGBrgb(135, 27, 122)
HSLhsl(307, 67%, 32%)
HSVhsv(307, 80%, 53%)
CMYKcmyk(0%, 80%, 9.6%, 47.1%)
CIE-LABlab(32.57, 54.05, -28.20)
CIE-LCHlch(32.57, 60.96, 332.44°)
OKLaboklab(44.2% 0.1567 -0.0774)
OKLCHoklch(44.2% 0.175 333.7)
XYZxyz(13.8966, 7.3411, 19.0937)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B7A #1B8728
analogous
#5E1B87 #871B7A #871B44
triadic
#871B7A #7A871B #1B7A87
tetradic
#871B7A #875E1B #1B8728 #1B4487
square
#871B7A #875E1B #1B8728 #1B4487
split-complementary
#871B7A #44871B #1B875E
monochromatic
#21071E #54114C #871B7A #BA25A8 #D943C7

Accessibility & contrast

On white

8.51
#871B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#871B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B7A
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B7A#FFFFFF#000000##FFFFFF
##871B7A1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437C
Deuteranopia (green-blind)
#425278
Tritanopia (blue-blind)
#8E274A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871b7a;
/* rgb */ color: rgb(135, 27, 122);
/* oklch */ color: oklch(44.2% 0.175 333.7);
Tailwind
colors: {
  custom: {
    50: '#ae65a1',
    500: '#871b7a',
    950: '#000000',
  },
}
SCSS
$custom: #871b7a;
$custom-light: #ae65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#871b7a",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 307.222,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44195,
    "c": 0.17478,
    "h": 333.7
  },
  "luminance": 0.0734
}

Semantic roles & 50–950 ramp

primary
#871B7A
secondary
#44BA52
accent
#EA533E
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #871B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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