#871986#871986

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

Color values

HEX#871986
RGBrgb(135, 25, 134)
HSLhsl(301, 69%, 31%)
HSVhsv(301, 81%, 53%)
CMYKcmyk(0%, 81.5%, 0.7%, 47.1%)
CIE-LABlab(33.07, 56.54, -34.92)
CIE-LCHlch(33.07, 66.45, 328.30°)
OKLaboklab(44.77% 0.1584 -0.0968)
OKLCHoklch(44.77% 0.186 328.6)
XYZxyz(14.6422, 7.5685, 23.2393)
Luminance0.0757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871986 #19871A
analogous
#511987 #871986 #87194F
triadic
#871986 #868719 #198687
tetradic
#871986 #875119 #19871A #194F87
square
#871986 #875119 #19871A #194F87
split-complementary
#871986 #4F8719 #198751
monochromatic
#20061F #530F53 #871986 #BB23B9 #DB3FDA

Accessibility & contrast

On white

8.36
#871986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#871986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871986
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871986#FFFFFF#000000##FFFFFF
##8719861.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#3A5383
Tritanopia (blue-blind)
#8C2C50
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871986;
/* rgb */ color: rgb(135, 25, 134);
/* oklch */ color: oklch(44.8% 0.186 328.6);
Tailwind
colors: {
  custom: {
    50: '#ae65aa',
    500: '#871986',
    950: '#000000',
  },
}
SCSS
$custom: #871986;
$custom-light: #ae65aa;
$custom-dark: #000000;
JSON
{
  "hex": "#871986",
  "rgb": {
    "r": 135,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 300.545,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.44772,
    "c": 0.18562,
    "h": 328.6
  },
  "luminance": 0.07567
}

Semantic roles & 50–950 ramp

primary
#871986
secondary
#41BA42
accent
#EC3E3C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #871986

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

Preview Lab → · Contrast checker → · Palette generator →

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