#871A7B#871A7B

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

Color values

HEX#871A7B
RGBrgb(135, 26, 123)
HSLhsl(307, 68%, 32%)
HSVhsv(307, 81%, 53%)
CMYKcmyk(0%, 80.7%, 8.9%, 47.1%)
CIE-LABlab(32.53, 54.49, -28.90)
CIE-LCHlch(32.53, 61.68, 332.06°)
OKLaboklab(44.18% 0.1576 -0.0794)
OKLCHoklch(44.18% 0.176 333.3)
XYZxyz(13.9363, 7.3210, 19.4142)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A7B #1A8726
analogous
#5D1A87 #871A7B #871A44
triadic
#871A7B #7B871A #1A7B87
tetradic
#871A7B #875D1A #1A8726 #1A4487
square
#871A7B #875D1A #1A8726 #1A4487
split-complementary
#871A7B #44871A #1A875D
monochromatic
#20061D #54104C #871A7B #BA24AA #DA41CA

Accessibility & contrast

On white

8.52
#871A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#871A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A7B
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A7B#FFFFFF#000000##FFFFFF
##871A7B1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14437E
Deuteranopia (green-blind)
#415278
Tritanopia (blue-blind)
#8D274A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871a7b;
/* rgb */ color: rgb(135, 26, 123);
/* oklch */ color: oklch(44.2% 0.176 333.3);
Tailwind
colors: {
  custom: {
    50: '#ae65a1',
    500: '#871a7b',
    950: '#000000',
  },
}
SCSS
$custom: #871a7b;
$custom-light: #ae65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#871a7b",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 306.606,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44181,
    "c": 0.17647,
    "h": 333.3
  },
  "luminance": 0.0732
}

Semantic roles & 50–950 ramp

primary
#871A7B
secondary
#42BA50
accent
#EB503D
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #871A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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