#871A9E#871A9E

#871A9E is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.4% C 0.204 H 319.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#871A9E
RGBrgb(135, 26, 158)
HSLhsl(290, 72%, 36%)
HSVhsv(290, 84%, 62%)
CMYKcmyk(14.6%, 83.5%, 0%, 38%)
CIE-LABlab(34.72, 60.48, -47.01)
CIE-LCHlch(34.72, 76.60, 322.14°)
OKLaboklab(46.44% 0.1551 -0.1322)
OKLCHoklch(46.44% 0.204 319.6)
XYZxyz(16.5318, 8.3592, 33.0838)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A9E #319E1A
analogous
#451A9E #871A9E #9E1A73
triadic
#871A9E #9E871A #1A9E87
tetradic
#871A9E #9E451A #319E1A #1A739E
square
#871A9E #9E451A #319E1A #1A739E
split-complementary
#871A9E #739E1A #1A9E45
monochromatic
#2D0935 #5A1169 #871A9E #B423D3 #C950E2

Accessibility & contrast

On white

7.86
#871A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#871A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A9E
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A9E#FFFFFF#000000##FFFFFF
##871A9E1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871a9e;
/* rgb */ color: rgb(135, 26, 158);
/* oklch */ color: oklch(46.4% 0.204 319.6);
Tailwind
colors: {
  custom: {
    50: '#ae67bb',
    500: '#871a9e',
    950: '#000000',
  },
}
SCSS
$custom: #871a9e;
$custom-light: #ae67bb;
$custom-dark: #000000;
JSON
{
  "hex": "#871a9e",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 289.545,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46437,
    "c": 0.20378,
    "h": 319.6
  },
  "luminance": 0.08358
}

Semantic roles & 50–950 ramp

primary
#871A9E
secondary
#64C54F
accent
#EE3959
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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