#871D7D#871D7D

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

Color values

HEX#871D7D
RGBrgb(135, 29, 125)
HSLhsl(306, 65%, 32%)
HSVhsv(306, 79%, 53%)
CMYKcmyk(0%, 78.5%, 7.4%, 47.1%)
CIE-LABlab(32.94, 53.92, -29.50)
CIE-LCHlch(32.94, 61.47, 331.32°)
OKLaboklab(44.52% 0.1551 -0.0811)
OKLCHoklch(44.52% 0.175 332.4)
XYZxyz(14.1328, 7.5115, 20.1036)
Luminance0.0751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D7D #1D8727
analogous
#5C1D87 #871D7D #871D48
triadic
#871D7D #7D871D #1D7D87
tetradic
#871D7D #875C1D #1D8727 #1D4887
square
#871D7D #875C1D #1D8727 #1D4887
split-complementary
#871D7D #48871D #1D875C
monochromatic
#220720 #55124E #871D7D #B928AC #D747CA

Accessibility & contrast

On white

8.39
#871D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#871D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D7D
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D7D#FFFFFF#000000##FFFFFF
##871D7D1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164480
Deuteranopia (green-blind)
#41537B
Tritanopia (blue-blind)
#8D2A4C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871d7d;
/* rgb */ color: rgb(135, 29, 125);
/* oklch */ color: oklch(44.5% 0.175 332.4);
Tailwind
colors: {
  custom: {
    50: '#ad66a3',
    500: '#871d7d',
    950: '#000000',
  },
}
SCSS
$custom: #871d7d;
$custom-light: #ad66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#871d7d",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 305.66,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44516,
    "c": 0.17503,
    "h": 332.4
  },
  "luminance": 0.0751
}

Semantic roles & 50–950 ramp

primary
#871D7D
secondary
#46B951
accent
#E85040
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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