#871AA0#871AA0

#871AA0 is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.6% C 0.205 H 318.9°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#871AA0
RGBrgb(135, 26, 160)
HSLhsl(289, 72%, 36%)
HSVhsv(289, 84%, 63%)
CMYKcmyk(15.6%, 83.8%, 0%, 37.3%)
CIE-LABlab(34.86, 60.85, -47.99)
CIE-LCHlch(34.86, 77.50, 321.74°)
OKLaboklab(46.58% 0.1548 -0.1351)
OKLCHoklch(46.58% 0.205 318.9)
XYZxyz(16.7054, 8.4286, 33.9978)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871AA0 #33A01A
analogous
#441AA0 #871AA0 #A01A76
triadic
#871AA0 #A0871A #1AA087
tetradic
#871AA0 #A0441A #33A01A #1A76A0
square
#871AA0 #A0441A #33A01A #1A76A0
split-complementary
#871AA0 #76A01A #1AA044
monochromatic
#2E0937 #5B116B #871AA0 #B323D5 #C852E3

Accessibility & contrast

On white

7.82
#871AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871AA0
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871AA0#FFFFFF#000000##FFFFFF
##871AA01.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#24559D
Tritanopia (blue-blind)
#873A5F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871aa0;
/* rgb */ color: rgb(135, 26, 160);
/* oklch */ color: oklch(46.6% 0.205 318.9);
Tailwind
colors: {
  custom: {
    50: '#ae67bd',
    500: '#871aa0',
    950: '#000000',
  },
}
SCSS
$custom: #871aa0;
$custom-light: #ae67bd;
$custom-dark: #000000;
JSON
{
  "hex": "#871aa0",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 288.806,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4658,
    "c": 0.20541,
    "h": 318.9
  },
  "luminance": 0.08428
}

Semantic roles & 50–950 ramp

primary
#871AA0
secondary
#66C550
accent
#EF395B
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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