#871D7F#871D7F

#871D7F is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.177 H 331.5°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#871D7F
RGBrgb(135, 29, 127)
HSLhsl(305, 65%, 32%)
HSVhsv(305, 79%, 53%)
CMYKcmyk(0%, 78.5%, 5.9%, 47.1%)
CIE-LABlab(33.06, 54.25, -30.58)
CIE-LCHlch(33.06, 62.27, 330.59°)
OKLaboklab(44.63% 0.1551 -0.0842)
OKLCHoklch(44.63% 0.177 331.5)
XYZxyz(14.2618, 7.5631, 20.7832)
Luminance0.0756 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D7F #1D8725
analogous
#5A1D87 #871D7F #871D4A
triadic
#871D7F #7F871D #1D7F87
tetradic
#871D7F #875A1D #1D8725 #1D4A87
square
#871D7F #875A1D #1D8725 #1D4A87
split-complementary
#871D7F #4A871D #1D875A
monochromatic
#220720 #551250 #871D7F #B928AE #D747CD

Accessibility & contrast

On white

8.36
#871D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#871D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D7F
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D7F#FFFFFF#000000##FFFFFF
##871D7F1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134482
Deuteranopia (green-blind)
#40537C
Tritanopia (blue-blind)
#8D2B4D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871d7f;
/* rgb */ color: rgb(135, 29, 127);
/* oklch */ color: oklch(44.6% 0.177 331.5);
Tailwind
colors: {
  custom: {
    50: '#ad66a4',
    500: '#871d7f',
    950: '#000000',
  },
}
SCSS
$custom: #871d7f;
$custom-light: #ad66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#871d7f",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 304.528,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44632,
    "c": 0.17654,
    "h": 331.5
  },
  "luminance": 0.07562
}

Semantic roles & 50–950 ramp

primary
#871D7F
secondary
#46B94F
accent
#E84D40
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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