#871F87#871F87

#871F87 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.181 H 328.1°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#871F87
RGBrgb(135, 31, 135)
HSLhsl(300, 63%, 33%)
HSVhsv(300, 77%, 53%)
CMYKcmyk(0%, 77%, 0%, 47.1%)
CIE-LABlab(33.73, 54.95, -34.48)
CIE-LCHlch(33.73, 64.88, 327.89°)
OKLaboklab(45.27% 0.1534 -0.0956)
OKLCHoklch(45.27% 0.181 328.1)
XYZxyz(14.8547, 7.8812, 23.6558)
Luminance0.0788 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F87 #1F871F
analogous
#531F87 #871F87 #871F53
triadic
#871F87 #87871F #1F8787
tetradic
#871F87 #87531F #1F871F #1F5387
square
#871F87 #87531F #1F871F #1F5387
split-complementary
#871F87 #53871F #1F8753
monochromatic
#230823 #551455 #871F87 #B92AB9 #D64BD6

Accessibility & contrast

On white

8.15
#871F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#871F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F87
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F87#FFFFFF#000000##FFFFFF
##871F871.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871f87;
/* rgb */ color: rgb(135, 31, 135);
/* oklch */ color: oklch(45.3% 0.181 328.1);
Tailwind
colors: {
  custom: {
    50: '#ad67aa',
    500: '#871f87',
    950: '#000000',
  },
}
SCSS
$custom: #871f87;
$custom-light: #ad67aa;
$custom-dark: #000000;
JSON
{
  "hex": "#871f87",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 300,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45266,
    "c": 0.18073,
    "h": 328.1
  },
  "luminance": 0.0788
}

Semantic roles & 50–950 ramp

primary
#871F87
secondary
#4AB84A
accent
#E64242
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871F87

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

Preview Lab → · Contrast checker → · Palette generator →

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