#871E87#871E87

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

Color values

HEX#871E87
RGBrgb(135, 30, 135)
HSLhsl(300, 64%, 32%)
HSVhsv(300, 78%, 53%)
CMYKcmyk(0%, 77.8%, 0%, 47.1%)
CIE-LABlab(33.63, 55.27, -34.66)
CIE-LCHlch(33.63, 65.23, 327.91°)
OKLaboklab(45.19% 0.1543 -0.0961)
OKLCHoklch(45.19% 0.182 328.1)
XYZxyz(14.8289, 7.8298, 23.6472)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E87 #1E871E
analogous
#531E87 #871E87 #871E53
triadic
#871E87 #87871E #1E8787
tetradic
#871E87 #87531E #1E871E #1E5387
square
#871E87 #87531E #1E871E #1E5387
split-complementary
#871E87 #53871E #1E8753
monochromatic
#230823 #551355 #871E87 #B929B9 #D749D7

Accessibility & contrast

On white

8.18
#871E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871E87
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E87#FFFFFF#000000##FFFFFF
##871E871.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03468A
Deuteranopia (green-blind)
#3C5484
Tritanopia (blue-blind)
#8B2F52
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871e87;
/* rgb */ color: rgb(135, 30, 135);
/* oklch */ color: oklch(45.2% 0.182 328.1);
Tailwind
colors: {
  custom: {
    50: '#ae67aa',
    500: '#871e87',
    950: '#000000',
  },
}
SCSS
$custom: #871e87;
$custom-light: #ae67aa;
$custom-dark: #000000;
JSON
{
  "hex": "#871e87",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 300,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45189,
    "c": 0.18174,
    "h": 328.1
  },
  "luminance": 0.07829
}

Semantic roles & 50–950 ramp

primary
#871E87
secondary
#48B948
accent
#E74141
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871E87

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

Preview Lab → · Contrast checker → · Palette generator →

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