#871E82#871E82

#871E82 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.178 H 330.2°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#871E82
RGBrgb(135, 30, 130)
HSLhsl(303, 64%, 32%)
HSVhsv(303, 78%, 53%)
CMYKcmyk(0%, 77.8%, 3.7%, 47.1%)
CIE-LABlab(33.33, 54.43, -32.01)
CIE-LCHlch(33.33, 63.14, 329.54°)
OKLaboklab(44.89% 0.1543 -0.0884)
OKLCHoklch(44.89% 0.178 330.2)
XYZxyz(14.4852, 7.6923, 21.8366)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E82 #1E8723
analogous
#571E87 #871E82 #871E4E
triadic
#871E82 #82871E #1E8287
tetradic
#871E82 #87571E #1E8723 #1E4E87
square
#871E82 #87571E #1E8723 #1E4E87
split-complementary
#871E82 #4E871E #1E8757
monochromatic
#230822 #551352 #871E82 #B929B2 #D749D0

Accessibility & contrast

On white

8.27
#871E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871E82
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E82#FFFFFF#000000##FFFFFF
##871E821.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4585
Deuteranopia (green-blind)
#3F537F
Tritanopia (blue-blind)
#8C2D4F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871e82;
/* rgb */ color: rgb(135, 30, 130);
/* oklch */ color: oklch(44.9% 0.178 330.2);
Tailwind
colors: {
  custom: {
    50: '#ad67a7',
    500: '#871e82',
    950: '#000000',
  },
}
SCSS
$custom: #871e82;
$custom-light: #ad67a7;
$custom-dark: #000000;
JSON
{
  "hex": "#871e82",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 302.857,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44886,
    "c": 0.17783,
    "h": 330.2
  },
  "luminance": 0.07691
}

Semantic roles & 50–950 ramp

primary
#871E82
secondary
#48B94D
accent
#E74941
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #871E82

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

Preview Lab → · Contrast checker → · Palette generator →

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