#871987#871987

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

Color values

HEX#871987
RGBrgb(135, 25, 135)
HSLhsl(300, 69%, 31%)
HSVhsv(300, 81%, 53%)
CMYKcmyk(0%, 81.5%, 0%, 47.1%)
CIE-LABlab(33.13, 56.70, -35.45)
CIE-LCHlch(33.13, 66.87, 327.99°)
OKLaboklab(44.83% 0.1583 -0.0984)
OKLCHoklch(44.83% 0.186 328.1)
XYZxyz(14.7123, 7.5965, 23.6084)
Luminance0.0760 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871987 #198719
analogous
#501987 #871987 #871950
triadic
#871987 #878719 #198787
tetradic
#871987 #875019 #198719 #195087
square
#871987 #875019 #198719 #195087
split-complementary
#871987 #508719 #198750
monochromatic
#200620 #530F53 #871987 #BB23BB #DB3FDB

Accessibility & contrast

On white

8.34
#871987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#871987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871987
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871987#FFFFFF#000000##FFFFFF
##8719871.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.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: #871987;
/* rgb */ color: rgb(135, 25, 135);
/* oklch */ color: oklch(44.8% 0.186 328.1);
Tailwind
colors: {
  custom: {
    50: '#ae65aa',
    500: '#871987',
    950: '#000000',
  },
}
SCSS
$custom: #871987;
$custom-light: #ae65aa;
$custom-dark: #000000;
JSON
{
  "hex": "#871987",
  "rgb": {
    "r": 135,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 300,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.44834,
    "c": 0.18639,
    "h": 328.1
  },
  "luminance": 0.07595
}

Semantic roles & 50–950 ramp

primary
#871987
secondary
#41BA41
accent
#EC3C3C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #871987

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

Preview Lab → · Contrast checker → · Palette generator →

#871987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva