#871A76#871A76

#871A76 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.173 H 335.6°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#871A76
RGBrgb(135, 26, 118)
HSLhsl(309, 68%, 32%)
HSVhsv(309, 81%, 53%)
CMYKcmyk(0%, 80.7%, 12.6%, 47.1%)
CIE-LABlab(32.26, 53.72, -26.17)
CIE-LCHlch(32.26, 59.76, 334.02°)
OKLaboklab(43.9% 0.1574 -0.0715)
OKLCHoklch(43.9% 0.173 335.6)
XYZxyz(13.6313, 7.1990, 17.8077)
Luminance0.0720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A76 #1A872B
analogous
#621A87 #871A76 #871A40
triadic
#871A76 #76871A #1A7687
tetradic
#871A76 #87621A #1A872B #1A4087
square
#871A76 #87621A #1A872B #1A4087
split-complementary
#871A76 #40871A #1A8762
monochromatic
#20061C #541049 #871A76 #BA24A3 #DA41C2

Accessibility & contrast

On white

8.61
#871A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#871A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A76
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A76#FFFFFF#000000##FFFFFF
##871A761.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4278
Deuteranopia (green-blind)
#435274
Tritanopia (blue-blind)
#8E2447
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871a76;
/* rgb */ color: rgb(135, 26, 118);
/* oklch */ color: oklch(43.9% 0.173 335.6);
Tailwind
colors: {
  custom: {
    50: '#ae659e',
    500: '#871a76',
    950: '#000000',
  },
}
SCSS
$custom: #871a76;
$custom-light: #ae659e;
$custom-dark: #000000;
JSON
{
  "hex": "#871a76",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 309.358,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43899,
    "c": 0.17285,
    "h": 335.6
  },
  "luminance": 0.07198
}

Semantic roles & 50–950 ramp

primary
#871A76
secondary
#42BA55
accent
#EB583D
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871A76

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

Preview Lab → · Contrast checker → · Palette generator →

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