#871B79#871B79

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

Color values

HEX#871B79
RGBrgb(135, 27, 121)
HSLhsl(308, 67%, 32%)
HSVhsv(308, 80%, 53%)
CMYKcmyk(0%, 80%, 10.4%, 47.1%)
CIE-LABlab(32.52, 53.89, -27.66)
CIE-LCHlch(32.52, 60.57, 332.83°)
OKLaboklab(44.14% 0.1567 -0.0758)
OKLCHoklch(44.14% 0.174 334.2)
XYZxyz(13.8349, 7.3165, 18.7690)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B79 #1B8729
analogous
#5F1B87 #871B79 #871B43
triadic
#871B79 #79871B #1B7987
tetradic
#871B79 #875F1B #1B8729 #1B4387
square
#871B79 #875F1B #1B8729 #1B4387
split-complementary
#871B79 #43871B #1B875F
monochromatic
#21071E #54114B #871B79 #BA25A7 #D943C6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##871B79#FFFFFF#000000##FFFFFF
##871B791.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)
#18437B
Deuteranopia (green-blind)
#425277
Tritanopia (blue-blind)
#8E2649
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871b79;
/* rgb */ color: rgb(135, 27, 121);
/* oklch */ color: oklch(44.1% 0.174 334.2);
Tailwind
colors: {
  custom: {
    50: '#ae65a0',
    500: '#871b79',
    950: '#000000',
  },
}
SCSS
$custom: #871b79;
$custom-light: #ae65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#871b79",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 307.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44139,
    "c": 0.17405,
    "h": 334.2
  },
  "luminance": 0.07315
}

Semantic roles & 50–950 ramp

primary
#871B79
secondary
#44BA53
accent
#EA543E
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871B79

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

Preview Lab → · Contrast checker → · Palette generator →

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