#871C87#871C87

#871C87 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.184 H 328.1°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#871C87
RGBrgb(135, 28, 135)
HSLhsl(300, 66%, 32%)
HSVhsv(300, 79%, 53%)
CMYKcmyk(0%, 79.3%, 0%, 47.1%)
CIE-LABlab(33.42, 55.86, -34.99)
CIE-LCHlch(33.42, 65.92, 327.94°)
OKLaboklab(45.04% 0.156 -0.097)
OKLCHoklch(45.04% 0.184 328.1)
XYZxyz(14.7799, 7.7318, 23.6309)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C87 #1C871C
analogous
#521C87 #871C87 #871C52
triadic
#871C87 #87871C #1C8787
tetradic
#871C87 #87521C #1C871C #1C5287
square
#871C87 #87521C #1C871C #1C5287
split-complementary
#871C87 #52871C #1C8752
monochromatic
#220722 #541154 #871C87 #BA27BA #D845D8

Accessibility & contrast

On white

8.25
#871C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#871C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C87
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C87#FFFFFF#000000##FFFFFF
##871C871.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#3B5384
Tritanopia (blue-blind)
#8B2E51
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871c87;
/* rgb */ color: rgb(135, 28, 135);
/* oklch */ color: oklch(45.0% 0.184 328.1);
Tailwind
colors: {
  custom: {
    50: '#ae66aa',
    500: '#871c87',
    950: '#000000',
  },
}
SCSS
$custom: #871c87;
$custom-light: #ae66aa;
$custom-dark: #000000;
JSON
{
  "hex": "#871c87",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 300,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.4504,
    "c": 0.18368,
    "h": 328.1
  },
  "luminance": 0.07731
}

Semantic roles & 50–950 ramp

primary
#871C87
secondary
#45BA45
accent
#E93F3F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871C87

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

Preview Lab → · Contrast checker → · Palette generator →

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