#871E7B#871E7B

#871E7B is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.172 H 333.3°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#871E7B
RGBrgb(135, 30, 123)
HSLhsl(307, 64%, 32%)
HSVhsv(307, 78%, 53%)
CMYKcmyk(0%, 77.8%, 8.9%, 47.1%)
CIE-LABlab(32.94, 53.30, -28.25)
CIE-LCHlch(32.94, 60.32, 332.08°)
OKLaboklab(44.48% 0.1541 -0.0775)
OKLCHoklch(44.48% 0.173 333.3)
XYZxyz(14.0312, 7.5107, 19.4458)
Luminance0.0751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E7B #1E872A
analogous
#5E1E87 #871E7B #871E47
triadic
#871E7B #7B871E #1E7B87
tetradic
#871E7B #875E1E #1E872A #1E4787
square
#871E7B #875E1E #1E872A #1E4787
split-complementary
#871E7B #47871E #1E875E
monochromatic
#230820 #55134D #871E7B #B929A9 #D749C6

Accessibility & contrast

On white

8.39
#871E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#871E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871E7B
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871E7B#FFFFFF#000000##FFFFFF
##871E7B1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19447D
Deuteranopia (green-blind)
#425379
Tritanopia (blue-blind)
#8D294B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871e7b;
/* rgb */ color: rgb(135, 30, 123);
/* oklch */ color: oklch(44.5% 0.172 333.3);
Tailwind
colors: {
  custom: {
    50: '#ad66a1',
    500: '#871e7b',
    950: '#000000',
  },
}
SCSS
$custom: #871e7b;
$custom-light: #ad66a1;
$custom-dark: #000000;
JSON
{
  "hex": "#871e7b",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 306.857,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44479,
    "c": 0.1725,
    "h": 333.3
  },
  "luminance": 0.0751
}

Semantic roles & 50–950 ramp

primary
#871E7B
secondary
#48B955
accent
#E75441
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #871E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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