#871C7B#871C7B

#871C7B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.175 H 333.3°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#871C7B
RGBrgb(135, 28, 123)
HSLhsl(307, 66%, 32%)
HSVhsv(307, 79%, 53%)
CMYKcmyk(0%, 79.3%, 8.9%, 47.1%)
CIE-LABlab(32.73, 53.91, -28.58)
CIE-LCHlch(32.73, 61.02, 332.07°)
OKLaboklab(44.33% 0.1559 -0.0785)
OKLCHoklch(44.33% 0.175 333.3)
XYZxyz(13.9822, 7.4127, 19.4294)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C7B #1C8728
analogous
#5E1C87 #871C7B #871C46
triadic
#871C7B #7B871C #1C7B87
tetradic
#871C7B #875E1C #1C8728 #1C4687
square
#871C7B #875E1C #1C8728 #1C4687
split-complementary
#871C7B #46871C #1C875E
monochromatic
#22071F #54114D #871C7B #BA27A9 #D845C8

Accessibility & contrast

On white

8.46
#871C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#871C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C7B
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C7B#FFFFFF#000000##FFFFFF
##871C7B1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437E
Deuteranopia (green-blind)
#425279
Tritanopia (blue-blind)
#8D284A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871c7b;
/* rgb */ color: rgb(135, 28, 123);
/* oklch */ color: oklch(44.3% 0.175 333.3);
Tailwind
colors: {
  custom: {
    50: '#ae66a1',
    500: '#871c7b',
    950: '#000000',
  },
}
SCSS
$custom: #871c7b;
$custom-light: #ae66a1;
$custom-dark: #000000;
JSON
{
  "hex": "#871c7b",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 306.729,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44326,
    "c": 0.17454,
    "h": 333.3
  },
  "luminance": 0.07411
}

Semantic roles & 50–950 ramp

primary
#871C7B
secondary
#45BA52
accent
#E9523F
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #871C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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