#871A78#871A78

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

Color values

HEX#871A78
RGBrgb(135, 26, 120)
HSLhsl(308, 68%, 32%)
HSVhsv(308, 81%, 53%)
CMYKcmyk(0%, 80.7%, 11.1%, 47.1%)
CIE-LABlab(32.36, 54.03, -27.27)
CIE-LCHlch(32.36, 60.52, 333.22°)
OKLaboklab(44.01% 0.1575 -0.0747)
OKLCHoklch(44.01% 0.174 334.6)
XYZxyz(13.7514, 7.2470, 18.4402)
Luminance0.0725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A78 #1A8729
analogous
#601A87 #871A78 #871A42
triadic
#871A78 #78871A #1A7887
tetradic
#871A78 #87601A #1A8729 #1A4287
square
#871A78 #87601A #1A8729 #1A4287
split-complementary
#871A78 #42871A #1A8760
monochromatic
#20061D #54104A #871A78 #BA24A6 #DA41C5

Accessibility & contrast

On white

8.57
#871A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871A78
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A78#FFFFFF#000000##FFFFFF
##871A781.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18427A
Deuteranopia (green-blind)
#425276
Tritanopia (blue-blind)
#8E2548
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871a78;
/* rgb */ color: rgb(135, 26, 120);
/* oklch */ color: oklch(44.0% 0.174 334.6);
Tailwind
colors: {
  custom: {
    50: '#ae659f',
    500: '#871a78',
    950: '#000000',
  },
}
SCSS
$custom: #871a78;
$custom-light: #ae659f;
$custom-dark: #000000;
JSON
{
  "hex": "#871a78",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 308.257,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44011,
    "c": 0.17429,
    "h": 334.6
  },
  "luminance": 0.07246
}

Semantic roles & 50–950 ramp

primary
#871A78
secondary
#42BA53
accent
#EB553D
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871A78

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

Preview Lab → · Contrast checker → · Palette generator →

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