#871B7E#871B7E

#871B7E is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.178 H 331.9°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#871B7E
RGBrgb(135, 27, 126)
HSLhsl(305, 67%, 32%)
HSVhsv(305, 80%, 53%)
CMYKcmyk(0%, 80%, 6.7%, 47.1%)
CIE-LABlab(32.79, 54.68, -30.36)
CIE-LCHlch(32.79, 62.54, 330.96°)
OKLaboklab(44.43% 0.1569 -0.0836)
OKLCHoklch(44.43% 0.178 331.9)
XYZxyz(14.1495, 7.4423, 20.4259)
Luminance0.0744 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B7E #1B8724
analogous
#5A1B87 #871B7E #871B48
triadic
#871B7E #7E871B #1B7E87
tetradic
#871B7E #875A1B #1B8724 #1B4887
square
#871B7E #875A1B #1B8724 #1B4887
split-complementary
#871B7E #48871B #1B875A
monochromatic
#21071F #54114E #871B7E #BA25AE #D943CD

Accessibility & contrast

On white

8.44
#871B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#871B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B7E
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B7E#FFFFFF#000000##FFFFFF
##871B7E1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114481
Deuteranopia (green-blind)
#40527B
Tritanopia (blue-blind)
#8D294C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871b7e;
/* rgb */ color: rgb(135, 27, 126);
/* oklch */ color: oklch(44.4% 0.178 331.9);
Tailwind
colors: {
  custom: {
    50: '#ae65a4',
    500: '#871b7e',
    950: '#000000',
  },
}
SCSS
$custom: #871b7e;
$custom-light: #ae65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#871b7e",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 305,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44426,
    "c": 0.17775,
    "h": 331.9
  },
  "luminance": 0.07441
}

Semantic roles & 50–950 ramp

primary
#871B7E
secondary
#44BA4E
accent
#EA4C3E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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