#871D87#871D87

#871D87 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.183 H 328.1°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#871D87
RGBrgb(135, 29, 135)
HSLhsl(300, 65%, 32%)
HSVhsv(300, 79%, 53%)
CMYKcmyk(0%, 78.5%, 0%, 47.1%)
CIE-LABlab(33.52, 55.57, -34.82)
CIE-LCHlch(33.52, 65.58, 327.93°)
OKLaboklab(45.11% 0.1551 -0.0966)
OKLCHoklch(45.11% 0.183 328.1)
XYZxyz(14.8040, 7.7800, 23.6389)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D87 #1D871D
analogous
#521D87 #871D87 #871D52
triadic
#871D87 #87871D #1D8787
tetradic
#871D87 #87521D #1D871D #1D5287
square
#871D87 #87521D #1D871D #1D5287
split-complementary
#871D87 #52871D #1D8752
monochromatic
#220722 #551255 #871D87 #B928B9 #D747D7

Accessibility & contrast

On white

8.22
#871D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#871D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D87
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D87#FFFFFF#000000##FFFFFF
##871D871.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01468A
Deuteranopia (green-blind)
#3B5484
Tritanopia (blue-blind)
#8B2F51
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871d87;
/* rgb */ color: rgb(135, 29, 135);
/* oklch */ color: oklch(45.1% 0.183 328.1);
Tailwind
colors: {
  custom: {
    50: '#ae67aa',
    500: '#871d87',
    950: '#000000',
  },
}
SCSS
$custom: #871d87;
$custom-light: #ae67aa;
$custom-dark: #000000;
JSON
{
  "hex": "#871d87",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 300,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45113,
    "c": 0.18272,
    "h": 328.1
  },
  "luminance": 0.07779
}

Semantic roles & 50–950 ramp

primary
#871D87
secondary
#46B946
accent
#E84040
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871D87

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

Preview Lab → · Contrast checker → · Palette generator →

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