#871B87#871B87

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

Color values

HEX#871B87
RGBrgb(135, 27, 135)
HSLhsl(300, 67%, 32%)
HSVhsv(300, 80%, 53%)
CMYKcmyk(0%, 80%, 0%, 47.1%)
CIE-LABlab(33.32, 56.15, -35.15)
CIE-LCHlch(33.32, 66.25, 327.96°)
OKLaboklab(44.97% 0.1568 -0.0975)
OKLCHoklch(44.97% 0.185 328.1)
XYZxyz(14.7566, 7.6851, 23.6231)
Luminance0.0768 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B87 #1B871B
analogous
#511B87 #871B87 #871B51
triadic
#871B87 #87871B #1B8787
tetradic
#871B87 #87511B #1B871B #1B5187
square
#871B87 #87511B #1B871B #1B5187
split-complementary
#871B87 #51871B #1B8751
monochromatic
#210721 #541154 #871B87 #BA25BA #D943D9

Accessibility & contrast

On white

8.28
#871B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#871B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B87
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B87#FFFFFF#000000##FFFFFF
##871B871.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871b87;
/* rgb */ color: rgb(135, 27, 135);
/* oklch */ color: oklch(45.0% 0.185 328.1);
Tailwind
colors: {
  custom: {
    50: '#ae66aa',
    500: '#871b87',
    950: '#000000',
  },
}
SCSS
$custom: #871b87;
$custom-light: #ae66aa;
$custom-dark: #000000;
JSON
{
  "hex": "#871b87",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 300,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4497,
    "c": 0.18461,
    "h": 328.1
  },
  "luminance": 0.07684
}

Semantic roles & 50–950 ramp

primary
#871B87
secondary
#44BA44
accent
#EA3E3E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #871B87

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

Preview Lab → · Contrast checker → · Palette generator →

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