#871F86#871F86

#871F86 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.180 H 328.5°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#871F86
RGBrgb(135, 31, 134)
HSLhsl(301, 63%, 33%)
HSVhsv(301, 77%, 53%)
CMYKcmyk(0%, 77%, 0.7%, 47.1%)
CIE-LABlab(33.68, 54.78, -33.96)
CIE-LCHlch(33.68, 64.45, 328.21°)
OKLaboklab(45.21% 0.1534 -0.0941)
OKLCHoklch(45.21% 0.18 328.5)
XYZxyz(14.7846, 7.8532, 23.2868)
Luminance0.0785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F86 #1F8720
analogous
#541F87 #871F86 #871F52
triadic
#871F86 #86871F #1F8687
tetradic
#871F86 #87541F #1F8720 #1F5287
square
#871F86 #87541F #1F8720 #1F5287
split-complementary
#871F86 #52871F #1F8754
monochromatic
#230823 #551455 #871F86 #B92AB7 #D64BD4

Accessibility & contrast

On white

8.17
#871F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#871F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F86
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F86#FFFFFF#000000##FFFFFF
##871F861.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084789
Deuteranopia (green-blind)
#3D5483
Tritanopia (blue-blind)
#8C2F51
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871f86;
/* rgb */ color: rgb(135, 31, 134);
/* oklch */ color: oklch(45.2% 0.180 328.5);
Tailwind
colors: {
  custom: {
    50: '#ad67aa',
    500: '#871f86',
    950: '#000000',
  },
}
SCSS
$custom: #871f86;
$custom-light: #ad67aa;
$custom-dark: #000000;
JSON
{
  "hex": "#871f86",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 300.577,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45205,
    "c": 0.17993,
    "h": 328.5
  },
  "luminance": 0.07852
}

Semantic roles & 50–950 ramp

primary
#871F86
secondary
#4AB84B
accent
#E64442
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871F86

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

Preview Lab → · Contrast checker → · Palette generator →

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