#871C78#871C78

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

Color values

HEX#871C78
RGBrgb(135, 28, 120)
HSLhsl(308, 66%, 32%)
HSVhsv(308, 79%, 53%)
CMYKcmyk(0%, 79.3%, 11.1%, 47.1%)
CIE-LABlab(32.57, 53.44, -26.95)
CIE-LCHlch(32.57, 59.85, 333.24°)
OKLaboklab(44.16% 0.1557 -0.0738)
OKLCHoklch(44.16% 0.172 334.7)
XYZxyz(13.7973, 7.3387, 18.4555)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C78 #1C872B
analogous
#611C87 #871C78 #871C43
triadic
#871C78 #78871C #1C7887
tetradic
#871C78 #87611C #1C872B #1C4387
square
#871C78 #87611C #1C872B #1C4387
split-complementary
#871C78 #43871C #1C8761
monochromatic
#22071E #54114B #871C78 #BA27A5 #D845C4

Accessibility & contrast

On white

8.51
#871C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#871C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C78
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C78#FFFFFF#000000##FFFFFF
##871C781.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A437A
Deuteranopia (green-blind)
#435276
Tritanopia (blue-blind)
#8E2649
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871c78;
/* rgb */ color: rgb(135, 28, 120);
/* oklch */ color: oklch(44.2% 0.172 334.7);
Tailwind
colors: {
  custom: {
    50: '#ae669f',
    500: '#871c78',
    950: '#000000',
  },
}
SCSS
$custom: #871c78;
$custom-light: #ae669f;
$custom-dark: #000000;
JSON
{
  "hex": "#871c78",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 308.411,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44157,
    "c": 0.17233,
    "h": 334.7
  },
  "luminance": 0.07337
}

Semantic roles & 50–950 ramp

primary
#871C78
secondary
#45BA55
accent
#E9573F
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871C78

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

Preview Lab → · Contrast checker → · Palette generator →

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