#871C5F#871C5F

#871C5F is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.9% C 0.156 H 347.5°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#871C5F
RGBrgb(135, 28, 95)
HSLhsl(322, 66%, 32%)
HSVhsv(322, 79%, 53%)
CMYKcmyk(0%, 79.3%, 29.6%, 47.1%)
CIE-LABlab(31.37, 49.91, -12.82)
CIE-LCHlch(31.37, 51.53, 345.60°)
OKLaboklab(42.9% 0.1521 -0.0338)
OKLCHoklch(42.9% 0.156 347.5)
XYZxyz(12.4731, 6.8091, 11.4817)
Luminance0.0681 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C5F #1C8744
analogous
#7A1C87 #871C5F #871C2A
triadic
#871C5F #5F871C #1C5F87
tetradic
#871C5F #877A1C #1C8744 #1C2A87
square
#871C5F #877A1C #1C8744 #1C2A87
split-complementary
#871C5F #2A871C #1C877A
monochromatic
#220718 #54113B #871C5F #BA2783 #D845A1

Accessibility & contrast

On white

8.89
#871C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#871C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C5F
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C5F#FFFFFF#000000##FFFFFF
##871C5F1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3E61
Deuteranopia (green-blind)
#4C505D
Tritanopia (blue-blind)
#91173B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #871c5f;
/* rgb */ color: rgb(135, 28, 95);
/* oklch */ color: oklch(42.9% 0.156 347.5);
Tailwind
colors: {
  custom: {
    50: '#ae658c',
    500: '#871c5f',
    950: '#000000',
  },
}
SCSS
$custom: #871c5f;
$custom-light: #ae658c;
$custom-dark: #000000;
JSON
{
  "hex": "#871c5f",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 95
  },
  "hsl": {
    "h": 322.43,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42902,
    "c": 0.15584,
    "h": 347.5
  },
  "luminance": 0.06808
}

Semantic roles & 50–950 ramp

primary
#871C5F
secondary
#45BA71
accent
#E97F3F
background
#FBF6F8
surface
#F6EBF0
border
#D0C6CB
text
#11060C
muted
#807A7D

Preview Lab

Preview with #871C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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