#871B7F#871B7F

#871B7F is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.178 H 331.5°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#871B7F
RGBrgb(135, 27, 127)
HSLhsl(304, 67%, 32%)
HSVhsv(304, 80%, 53%)
CMYKcmyk(0%, 80%, 5.9%, 47.1%)
CIE-LABlab(32.85, 54.84, -30.90)
CIE-LCHlch(32.85, 62.95, 330.60°)
OKLaboklab(44.49% 0.1569 -0.0852)
OKLCHoklch(44.49% 0.179 331.5)
XYZxyz(14.2144, 7.4683, 20.7674)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B7F #1B8723
analogous
#591B87 #871B7F #871B49
triadic
#871B7F #7F871B #1B7F87
tetradic
#871B7F #87591B #1B8723 #1B4987
square
#871B7F #87591B #1B8723 #1B4987
split-complementary
#871B7F #49871B #1B8759
monochromatic
#21071F #54114F #871B7F #BA25AF #D943CE

Accessibility & contrast

On white

8.42
#871B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871B7F
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B7F#FFFFFF#000000##FFFFFF
##871B7F1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4482
Deuteranopia (green-blind)
#3F527C
Tritanopia (blue-blind)
#8D294C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871b7f;
/* rgb */ color: rgb(135, 27, 127);
/* oklch */ color: oklch(44.5% 0.178 331.5);
Tailwind
colors: {
  custom: {
    50: '#ae65a4',
    500: '#871b7f',
    950: '#000000',
  },
}
SCSS
$custom: #871b7f;
$custom-light: #ae65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#871b7f",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 304.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44485,
    "c": 0.1785,
    "h": 331.5
  },
  "luminance": 0.07467
}

Semantic roles & 50–950 ramp

primary
#871B7F
secondary
#44BA4C
accent
#EA4B3E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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