#871D8A#871D8A

#871D8A is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.185 H 326.9°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#871D8A
RGBrgb(135, 29, 138)
HSLhsl(298, 65%, 33%)
HSVhsv(298, 79%, 54%)
CMYKcmyk(2.2%, 79%, 0%, 45.9%)
CIE-LABlab(33.70, 56.08, -36.39)
CIE-LCHlch(33.70, 66.85, 327.02°)
OKLaboklab(45.3% 0.155 -0.1011)
OKLCHoklch(45.3% 0.185 326.9)
XYZxyz(15.0182, 7.8657, 24.7670)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D8A #208A1D
analogous
#511D8A #871D8A #8A1D56
triadic
#871D8A #8A871D #1D8A87
tetradic
#871D8A #8A511D #208A1D #1D568A
square
#871D8A #8A511D #208A1D #1D568A
split-complementary
#871D8A #568A1D #1D8A51
monochromatic
#240825 #561257 #871D8A #B828BD #D549D9

Accessibility & contrast

On white

8.16
#871D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#871D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D8A
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D8A#FFFFFF#000000##FFFFFF
##871D8A1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#3A5487
Tritanopia (blue-blind)
#8B3053
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871d8a;
/* rgb */ color: rgb(135, 29, 138);
/* oklch */ color: oklch(45.3% 0.185 326.9);
Tailwind
colors: {
  custom: {
    50: '#ae67ad',
    500: '#871d8a',
    950: '#000000',
  },
}
SCSS
$custom: #871d8a;
$custom-light: #ae67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#871d8a",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 298.349,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45301,
    "c": 0.18508,
    "h": 326.9
  },
  "luminance": 0.07865
}

Semantic roles & 50–950 ramp

primary
#871D8A
secondary
#4BBB48
accent
#E84044
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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