#871B7D#871B7D

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

Color values

HEX#871B7D
RGBrgb(135, 27, 125)
HSLhsl(306, 67%, 32%)
HSVhsv(306, 80%, 53%)
CMYKcmyk(0%, 80%, 7.4%, 47.1%)
CIE-LABlab(32.74, 54.52, -29.83)
CIE-LCHlch(32.74, 62.15, 331.32°)
OKLaboklab(44.37% 0.1568 -0.0821)
OKLCHoklch(44.37% 0.177 332.4)
XYZxyz(14.0853, 7.4166, 20.0878)
Luminance0.0741 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B7D #1B8725
analogous
#5B1B87 #871B7D #871B47
triadic
#871B7D #7D871B #1B7D87
tetradic
#871B7D #875B1B #1B8725 #1B4787
square
#871B7D #875B1B #1B8725 #1B4787
split-complementary
#871B7D #47871B #1B875B
monochromatic
#21071F #54114E #871B7D #BA25AC #D943CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##871B7D#FFFFFF#000000##FFFFFF
##871B7D1.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)
#134380
Deuteranopia (green-blind)
#40527A
Tritanopia (blue-blind)
#8D284B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871b7d;
/* rgb */ color: rgb(135, 27, 125);
/* oklch */ color: oklch(44.4% 0.177 332.4);
Tailwind
colors: {
  custom: {
    50: '#ae65a3',
    500: '#871b7d',
    950: '#000000',
  },
}
SCSS
$custom: #871b7d;
$custom-light: #ae65a3;
$custom-dark: #000000;
JSON
{
  "hex": "#871b7d",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 305.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44368,
    "c": 0.177,
    "h": 332.4
  },
  "luminance": 0.07415
}

Semantic roles & 50–950 ramp

primary
#871B7D
secondary
#44BA4F
accent
#EA4E3E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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