#871D7E#871D7E

#871D7E is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.176 H 331.9°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#871D7E
RGBrgb(135, 29, 126)
HSLhsl(305, 65%, 32%)
HSVhsv(305, 79%, 53%)
CMYKcmyk(0%, 78.5%, 6.7%, 47.1%)
CIE-LABlab(33.00, 54.08, -30.04)
CIE-LCHlch(33.00, 61.87, 330.95°)
OKLaboklab(44.57% 0.1551 -0.0827)
OKLCHoklch(44.57% 0.176 331.9)
XYZxyz(14.1970, 7.5372, 20.4417)
Luminance0.0754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D7E #1D8726
analogous
#5B1D87 #871D7E #871D49
triadic
#871D7E #7E871D #1D7E87
tetradic
#871D7E #875B1D #1D8726 #1D4987
square
#871D7E #875B1D #1D8726 #1D4987
split-complementary
#871D7E #49871D #1D875B
monochromatic
#220720 #55124F #871D7E #B928AD #D747CB

Accessibility & contrast

On white

8.38
#871D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871D7E
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D7E#FFFFFF#000000##FFFFFF
##871D7E1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144481
Deuteranopia (green-blind)
#40537B
Tritanopia (blue-blind)
#8D2A4C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871d7e;
/* rgb */ color: rgb(135, 29, 126);
/* oklch */ color: oklch(44.6% 0.176 331.9);
Tailwind
colors: {
  custom: {
    50: '#ad66a4',
    500: '#871d7e',
    950: '#000000',
  },
}
SCSS
$custom: #871d7e;
$custom-light: #ad66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#871d7e",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 305.094,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44574,
    "c": 0.17579,
    "h": 331.9
  },
  "luminance": 0.07536
}

Semantic roles & 50–950 ramp

primary
#871D7E
secondary
#46B950
accent
#E84E40
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #871D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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