#871AA1#871AA1

#871AA1 is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.7% C 0.206 H 318.6°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#871AA1
RGBrgb(135, 26, 161)
HSLhsl(288, 72%, 37%)
HSVhsv(288, 84%, 63%)
CMYKcmyk(16.1%, 83.9%, 0%, 36.9%)
CIE-LABlab(34.93, 61.04, -48.48)
CIE-LCHlch(34.93, 77.95, 321.54°)
OKLaboklab(46.65% 0.1546 -0.1365)
OKLCHoklch(46.65% 0.206 318.6)
XYZxyz(16.7932, 8.4637, 34.4604)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871AA1 #34A11A
analogous
#431AA1 #871AA1 #A11A78
triadic
#871AA1 #A1871A #1AA187
tetradic
#871AA1 #A1431A #34A11A #1A78A1
square
#871AA1 #A1431A #34A11A #1A78A1
split-complementary
#871AA1 #78A11A #1AA143
monochromatic
#2F0938 #5B116C #871AA1 #B323D6 #C752E3

Accessibility & contrast

On white

7.80
#871AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#871AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871AA1
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871AA1#FFFFFF#000000##FFFFFF
##871AA11.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#23559E
Tritanopia (blue-blind)
#863B60
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871aa1;
/* rgb */ color: rgb(135, 26, 161);
/* oklch */ color: oklch(46.7% 0.206 318.6);
Tailwind
colors: {
  custom: {
    50: '#ae67be',
    500: '#871aa1',
    950: '#000000',
  },
}
SCSS
$custom: #871aa1;
$custom-light: #ae67be;
$custom-dark: #000000;
JSON
{
  "hex": "#871aa1",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 288.444,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46652,
    "c": 0.20623,
    "h": 318.6
  },
  "luminance": 0.08463
}

Semantic roles & 50–950 ramp

primary
#871AA1
secondary
#67C651
accent
#EF395C
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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