#871A87#871A87

#871A87 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.186 H 328.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#871A87
RGBrgb(135, 26, 135)
HSLhsl(300, 68%, 32%)
HSVhsv(300, 81%, 53%)
CMYKcmyk(0%, 80.7%, 0%, 47.1%)
CIE-LABlab(33.22, 56.43, -35.30)
CIE-LCHlch(33.22, 66.56, 327.97°)
OKLaboklab(44.9% 0.1576 -0.0979)
OKLCHoklch(44.9% 0.186 328.1)
XYZxyz(14.7341, 7.6401, 23.6156)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A87 #1A871A
analogous
#511A87 #871A87 #871A51
triadic
#871A87 #87871A #1A8787
tetradic
#871A87 #87511A #1A871A #1A5187
square
#871A87 #87511A #1A871A #1A5187
split-complementary
#871A87 #51871A #1A8751
monochromatic
#200620 #541054 #871A87 #BA24BA #DA41DA

Accessibility & contrast

On white

8.31
#871A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#871A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A87
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A87#FFFFFF#000000##FFFFFF
##871A871.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#3A5384
Tritanopia (blue-blind)
#8B2D51
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871a87;
/* rgb */ color: rgb(135, 26, 135);
/* oklch */ color: oklch(44.9% 0.186 328.1);
Tailwind
colors: {
  custom: {
    50: '#ae66aa',
    500: '#871a87',
    950: '#000000',
  },
}
SCSS
$custom: #871a87;
$custom-light: #ae66aa;
$custom-dark: #000000;
JSON
{
  "hex": "#871a87",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 300,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44901,
    "c": 0.18551,
    "h": 328.1
  },
  "luminance": 0.07639
}

Semantic roles & 50–950 ramp

primary
#871A87
secondary
#42BA42
accent
#EB3D3D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #871A87

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

Preview Lab → · Contrast checker → · Palette generator →

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