#871C77#871C77

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

Color values

HEX#871C77
RGBrgb(135, 28, 119)
HSLhsl(309, 66%, 32%)
HSVhsv(309, 79%, 53%)
CMYKcmyk(0%, 79.3%, 11.9%, 47.1%)
CIE-LABlab(32.51, 53.29, -26.40)
CIE-LCHlch(32.51, 59.47, 333.64°)
OKLaboklab(44.1% 0.1557 -0.0722)
OKLCHoklch(44.1% 0.172 335.1)
XYZxyz(13.7369, 7.3146, 18.1376)
Luminance0.0731 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C77 #1C872C
analogous
#621C87 #871C77 #871C42
triadic
#871C77 #77871C #1C7787
tetradic
#871C77 #87621C #1C872C #1C4287
square
#871C77 #87621C #1C872C #1C4287
split-complementary
#871C77 #42871C #1C8762
monochromatic
#22071E #54114A #871C77 #BA27A4 #D845C2

Accessibility & contrast

On white

8.53
#871C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871C77
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C77#FFFFFF#000000##FFFFFF
##871C771.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871c77;
/* rgb */ color: rgb(135, 28, 119);
/* oklch */ color: oklch(44.1% 0.172 335.1);
Tailwind
colors: {
  custom: {
    50: '#ae659e',
    500: '#871c77',
    950: '#000000',
  },
}
SCSS
$custom: #871c77;
$custom-light: #ae659e;
$custom-dark: #000000;
JSON
{
  "hex": "#871c77",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 308.972,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44101,
    "c": 0.17161,
    "h": 335.1
  },
  "luminance": 0.07313
}

Semantic roles & 50–950 ramp

primary
#871C77
secondary
#45BA56
accent
#E9593F
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871C77

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

Preview Lab → · Contrast checker → · Palette generator →

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