#871B7B#871B7B

#871B7B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.176 H 333.3°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#871B7B
RGBrgb(135, 27, 123)
HSLhsl(307, 67%, 32%)
HSVhsv(307, 80%, 53%)
CMYKcmyk(0%, 80%, 8.9%, 47.1%)
CIE-LABlab(32.63, 54.20, -28.75)
CIE-LCHlch(32.63, 61.35, 332.06°)
OKLaboklab(44.25% 0.1568 -0.079)
OKLCHoklch(44.25% 0.176 333.3)
XYZxyz(13.9589, 7.3660, 19.4217)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B7B #1B8727
analogous
#5D1B87 #871B7B #871B45
triadic
#871B7B #7B871B #1B7B87
tetradic
#871B7B #875D1B #1B8727 #1B4587
square
#871B7B #875D1B #1B8727 #1B4587
split-complementary
#871B7B #45871B #1B875D
monochromatic
#21071E #54114D #871B7B #BA25A9 #D943C9

Accessibility & contrast

On white

8.49
#871B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#871B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B7B
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B7B#FFFFFF#000000##FFFFFF
##871B7B1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16437E
Deuteranopia (green-blind)
#415279
Tritanopia (blue-blind)
#8D274A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871b7b;
/* rgb */ color: rgb(135, 27, 123);
/* oklch */ color: oklch(44.3% 0.176 333.3);
Tailwind
colors: {
  custom: {
    50: '#ae65a1',
    500: '#871b7b',
    950: '#000000',
  },
}
SCSS
$custom: #871b7b;
$custom-light: #ae65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#871b7b",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 306.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44252,
    "c": 0.17552,
    "h": 333.3
  },
  "luminance": 0.07365
}

Semantic roles & 50–950 ramp

primary
#871B7B
secondary
#44BA51
accent
#EA513E
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #871B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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