#871A7A#871A7A

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

Color values

HEX#871A7A
RGBrgb(135, 26, 122)
HSLhsl(307, 68%, 32%)
HSVhsv(307, 81%, 53%)
CMYKcmyk(0%, 80.7%, 9.6%, 47.1%)
CIE-LABlab(32.47, 54.33, -28.36)
CIE-LCHlch(32.47, 61.29, 332.44°)
OKLaboklab(44.12% 0.1576 -0.0778)
OKLCHoklch(44.12% 0.176 333.7)
XYZxyz(13.8740, 7.2961, 19.0862)
Luminance0.0730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A7A #1A8727
analogous
#5E1A87 #871A7A #871A44
triadic
#871A7A #7A871A #1A7A87
tetradic
#871A7A #875E1A #1A8727 #1A4487
square
#871A7A #875E1A #1A8727 #1A4487
split-complementary
#871A7A #44871A #1A875E
monochromatic
#20061D #54104C #871A7A #BA24A8 #DA41C8

Accessibility & contrast

On white

8.54
#871A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#871A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A7A
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A7A#FFFFFF#000000##FFFFFF
##871A7A1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427C
Deuteranopia (green-blind)
#415277
Tritanopia (blue-blind)
#8E2649
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871a7a;
/* rgb */ color: rgb(135, 26, 122);
/* oklch */ color: oklch(44.1% 0.176 333.7);
Tailwind
colors: {
  custom: {
    50: '#ae65a1',
    500: '#871a7a',
    950: '#000000',
  },
}
SCSS
$custom: #871a7a;
$custom-light: #ae65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#871a7a",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 307.156,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44124,
    "c": 0.17573,
    "h": 333.7
  },
  "luminance": 0.07295
}

Semantic roles & 50–950 ramp

primary
#871A7A
secondary
#42BA51
accent
#EB523D
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #871A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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