#871B77#871B77

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

Color values

HEX#871B77
RGBrgb(135, 27, 119)
HSLhsl(309, 67%, 32%)
HSVhsv(309, 80%, 53%)
CMYKcmyk(0%, 80%, 11.9%, 47.1%)
CIE-LABlab(32.41, 53.59, -26.57)
CIE-LCHlch(32.41, 59.81, 333.63°)
OKLaboklab(44.03% 0.1566 -0.0727)
OKLCHoklch(44.03% 0.173 335.1)
XYZxyz(13.7136, 7.2679, 18.1298)
Luminance0.0727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B77 #1B872B
analogous
#611B87 #871B77 #871B41
triadic
#871B77 #77871B #1B7787
tetradic
#871B77 #87611B #1B872B #1B4187
square
#871B77 #87611B #1B872B #1B4187
split-complementary
#871B77 #41871B #1B8761
monochromatic
#21071D #54114A #871B77 #BA25A4 #D943C3

Accessibility & contrast

On white

8.56
#871B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#871B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B77
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B77#FFFFFF#000000##FFFFFF
##871B771.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4279
Deuteranopia (green-blind)
#435275
Tritanopia (blue-blind)
#8E2548
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871b77;
/* rgb */ color: rgb(135, 27, 119);
/* oklch */ color: oklch(44.0% 0.173 335.1);
Tailwind
colors: {
  custom: {
    50: '#ae659e',
    500: '#871b77',
    950: '#000000',
  },
}
SCSS
$custom: #871b77;
$custom-light: #ae659e;
$custom-dark: #000000;
JSON
{
  "hex": "#871b77",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 308.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44027,
    "c": 0.1726,
    "h": 335.1
  },
  "luminance": 0.07267
}

Semantic roles & 50–950 ramp

primary
#871B77
secondary
#44BA55
accent
#EA583E
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871B77

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

Preview Lab → · Contrast checker → · Palette generator →

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