#871B78#871B78

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

Color values

HEX#871B78
RGBrgb(135, 27, 120)
HSLhsl(308, 67%, 32%)
HSVhsv(308, 80%, 53%)
CMYKcmyk(0%, 80%, 11.1%, 47.1%)
CIE-LABlab(32.46, 53.74, -27.11)
CIE-LCHlch(32.46, 60.19, 333.23°)
OKLaboklab(44.08% 0.1566 -0.0742)
OKLCHoklch(44.08% 0.173 334.6)
XYZxyz(13.7739, 7.2921, 18.4477)
Luminance0.0729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B78 #1B872A
analogous
#601B87 #871B78 #871B42
triadic
#871B78 #78871B #1B7887
tetradic
#871B78 #87601B #1B872A #1B4287
square
#871B78 #87601B #1B872A #1B4287
split-complementary
#871B78 #42871B #1B8760
monochromatic
#21071D #54114B #871B78 #BA25A5 #D943C5

Accessibility & contrast

On white

8.54
#871B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871B78
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B78#FFFFFF#000000##FFFFFF
##871B781.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19427A
Deuteranopia (green-blind)
#435276
Tritanopia (blue-blind)
#8E2549
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871b78;
/* rgb */ color: rgb(135, 27, 120);
/* oklch */ color: oklch(44.1% 0.173 334.6);
Tailwind
colors: {
  custom: {
    50: '#ae659f',
    500: '#871b78',
    950: '#000000',
  },
}
SCSS
$custom: #871b78;
$custom-light: #ae659f;
$custom-dark: #000000;
JSON
{
  "hex": "#871b78",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 308.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44083,
    "c": 0.17332,
    "h": 334.6
  },
  "luminance": 0.07291
}

Semantic roles & 50–950 ramp

primary
#871B78
secondary
#44BA54
accent
#EA563E
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871B78

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

Preview Lab → · Contrast checker → · Palette generator →

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