#871B9E#871B9E

#871B9E is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.5% C 0.203 H 319.5°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#871B9E
RGBrgb(135, 27, 158)
HSLhsl(289, 71%, 36%)
HSVhsv(289, 83%, 62%)
CMYKcmyk(14.6%, 82.9%, 0%, 38%)
CIE-LABlab(34.81, 60.22, -46.86)
CIE-LCHlch(34.81, 76.30, 322.11°)
OKLaboklab(46.5% 0.1544 -0.1317)
OKLCHoklch(46.5% 0.203 319.5)
XYZxyz(16.5544, 8.4042, 33.0913)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B9E #329E1B
analogous
#461B9E #871B9E #9E1B74
triadic
#871B9E #9E871B #1B9E87
tetradic
#871B9E #9E461B #329E1B #1B749E
square
#871B9E #9E461B #329E1B #1B749E
split-complementary
#871B9E #749E1B #1B9E46
monochromatic
#2E0935 #5A126A #871B9E #B424D2 #C852E1

Accessibility & contrast

On white

7.83
#871B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#871B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B9E
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B9E#FFFFFF#000000##FFFFFF
##871B9E1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#27559B
Tritanopia (blue-blind)
#873A5E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871b9e;
/* rgb */ color: rgb(135, 27, 158);
/* oklch */ color: oklch(46.5% 0.203 319.5);
Tailwind
colors: {
  custom: {
    50: '#ae67bb',
    500: '#871b9e',
    950: '#000000',
  },
}
SCSS
$custom: #871b9e;
$custom-light: #ae67bb;
$custom-dark: #000000;
JSON
{
  "hex": "#871b9e",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 289.466,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46501,
    "c": 0.20298,
    "h": 319.5
  },
  "luminance": 0.08403
}

Semantic roles & 50–950 ramp

primary
#871B9E
secondary
#65C451
accent
#EE3A5A
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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