#871A8D#871A8D

#871A8D is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.190 H 325.7°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#871A8D
RGBrgb(135, 26, 141)
HSLhsl(297, 69%, 33%)
HSVhsv(297, 82%, 55%)
CMYKcmyk(4.3%, 81.6%, 0%, 44.7%)
CIE-LABlab(33.59, 57.45, -38.42)
CIE-LCHlch(33.59, 69.11, 326.23°)
OKLaboklab(45.28% 0.1572 -0.107)
OKLCHoklch(45.28% 0.19 325.7)
XYZxyz(15.1685, 7.8138, 25.9034)
Luminance0.0781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A8D #208D1A
analogous
#4E1A8D #871A8D #8D1A59
triadic
#871A8D #8D871A #1A8D87
tetradic
#871A8D #8D4E1A #208D1A #1A598D
square
#871A8D #8D4E1A #208D1A #1A598D
split-complementary
#871A8D #598D1A #1A8D4E
monochromatic
#240726 #561059 #871A8D #B824C1 #D545DD

Accessibility & contrast

On white

8.19
#871A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#871A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A8D
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A8D#FFFFFF#000000##FFFFFF
##871A8D1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#36538A
Tritanopia (blue-blind)
#8A3054
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871a8d;
/* rgb */ color: rgb(135, 26, 141);
/* oklch */ color: oklch(45.3% 0.190 325.7);
Tailwind
colors: {
  custom: {
    50: '#ae66af',
    500: '#871a8d',
    950: '#000000',
  },
}
SCSS
$custom: #871a8d;
$custom-light: #ae66af;
$custom-dark: #000000;
JSON
{
  "hex": "#871a8d",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 296.87,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45283,
    "c": 0.19018,
    "h": 325.7
  },
  "luminance": 0.07813
}

Semantic roles & 50–950 ramp

primary
#871A8D
secondary
#4BBE45
accent
#EC3C45
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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