#871A77#871A77

#871A77 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.174 H 335.1°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#871A77
RGBrgb(135, 26, 119)
HSLhsl(309, 68%, 32%)
HSVhsv(309, 81%, 53%)
CMYKcmyk(0%, 80.7%, 11.9%, 47.1%)
CIE-LABlab(32.31, 53.87, -26.72)
CIE-LCHlch(32.31, 60.14, 333.62°)
OKLaboklab(43.96% 0.1574 -0.0731)
OKLCHoklch(43.96% 0.174 335.1)
XYZxyz(13.6910, 7.2229, 18.1223)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A77 #1A872A
analogous
#611A87 #871A77 #871A41
triadic
#871A77 #77871A #1A7787
tetradic
#871A77 #87611A #1A872A #1A4187
square
#871A77 #87611A #1A872A #1A4187
split-complementary
#871A77 #41871A #1A8761
monochromatic
#20061D #54104A #871A77 #BA24A4 #DA41C4

Accessibility & contrast

On white

8.59
#871A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871A77
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A77#FFFFFF#000000##FFFFFF
##871A771.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194279
Deuteranopia (green-blind)
#435275
Tritanopia (blue-blind)
#8E2448
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871a77;
/* rgb */ color: rgb(135, 26, 119);
/* oklch */ color: oklch(44.0% 0.174 335.1);
Tailwind
colors: {
  custom: {
    50: '#ae659e',
    500: '#871a77',
    950: '#000000',
  },
}
SCSS
$custom: #871a77;
$custom-light: #ae659e;
$custom-dark: #000000;
JSON
{
  "hex": "#871a77",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 308.807,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43955,
    "c": 0.17356,
    "h": 335.1
  },
  "luminance": 0.07222
}

Semantic roles & 50–950 ramp

primary
#871A77
secondary
#42BA54
accent
#EB573D
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871A77

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

Preview Lab → · Contrast checker → · Palette generator →

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