#871B84#871B84

#871B84 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.182 H 329.4°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#871B84
RGBrgb(135, 27, 132)
HSLhsl(302, 67%, 32%)
HSVhsv(302, 80%, 53%)
CMYKcmyk(0%, 80%, 2.2%, 47.1%)
CIE-LABlab(33.14, 55.65, -33.56)
CIE-LCHlch(33.14, 64.99, 328.91°)
OKLaboklab(44.79% 0.1569 -0.0929)
OKLCHoklch(44.79% 0.182 329.4)
XYZxyz(14.5484, 7.6018, 22.5264)
Luminance0.0760 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B84 #1B871E
analogous
#541B87 #871B84 #871B4E
triadic
#871B84 #84871B #1B8487
tetradic
#871B84 #87541B #1B871E #1B4E87
square
#871B84 #87541B #1B871E #1B4E87
split-complementary
#871B84 #4E871B #1B8754
monochromatic
#210720 #541152 #871B84 #BA25B6 #D943D5

Accessibility & contrast

On white

8.33
#871B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#871B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B84
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B84#FFFFFF#000000##FFFFFF
##871B841.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044587
Deuteranopia (green-blind)
#3C5381
Tritanopia (blue-blind)
#8C2C4F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871b84;
/* rgb */ color: rgb(135, 27, 132);
/* oklch */ color: oklch(44.8% 0.182 329.4);
Tailwind
colors: {
  custom: {
    50: '#ae66a8',
    500: '#871b84',
    950: '#000000',
  },
}
SCSS
$custom: #871b84;
$custom-light: #ae66a8;
$custom-dark: #000000;
JSON
{
  "hex": "#871b84",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 301.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44785,
    "c": 0.1823,
    "h": 329.4
  },
  "luminance": 0.07601
}

Semantic roles & 50–950 ramp

primary
#871B84
secondary
#44BA47
accent
#EA433E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #871B84

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

Preview Lab → · Contrast checker → · Palette generator →

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