#871D7A#871D7A

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

Color values

HEX#871D7A
RGBrgb(135, 29, 122)
HSLhsl(307, 65%, 32%)
HSVhsv(307, 79%, 53%)
CMYKcmyk(0%, 78.5%, 9.6%, 47.1%)
CIE-LABlab(32.78, 53.45, -27.87)
CIE-LCHlch(32.78, 60.28, 332.46°)
OKLaboklab(44.35% 0.155 -0.0764)
OKLCHoklch(44.35% 0.173 333.7)
XYZxyz(13.9440, 7.4360, 19.1095)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D7A #1D872A
analogous
#5F1D87 #871D7A #871D45
triadic
#871D7A #7A871D #1D7A87
tetradic
#871D7A #875F1D #1D872A #1D4587
square
#871D7A #875F1D #1D872A #1D4587
split-complementary
#871D7A #45871D #1D875F
monochromatic
#22071F #55124C #871D7A #B928A8 #D747C6

Accessibility & contrast

On white

8.44
#871D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#871D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D7A
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D7A#FFFFFF#000000##FFFFFF
##871D7A1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19437C
Deuteranopia (green-blind)
#425278
Tritanopia (blue-blind)
#8E284A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871d7a;
/* rgb */ color: rgb(135, 29, 122);
/* oklch */ color: oklch(44.3% 0.173 333.7);
Tailwind
colors: {
  custom: {
    50: '#ad66a1',
    500: '#871d7a',
    950: '#000000',
  },
}
SCSS
$custom: #871d7a;
$custom-light: #ad66a1;
$custom-dark: #000000;
JSON
{
  "hex": "#871d7a",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 307.358,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44345,
    "c": 0.17279,
    "h": 333.7
  },
  "luminance": 0.07435
}

Semantic roles & 50–950 ramp

primary
#871D7A
secondary
#46B954
accent
#E85540
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #871D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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