#871C42#871C42

#871C42 is a dark, vivid pink. Relative luminance 0.064; OKLCH L 41.8% C 0.144 H 5.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#871C42
RGBrgb(135, 28, 66)
HSLhsl(339, 66%, 32%)
HSVhsv(339, 79%, 53%)
CMYKcmyk(0%, 79.3%, 51.1%, 47.1%)
CIE-LABlab(30.34, 46.77, 4.72)
CIE-LCHlch(30.34, 47.00, 5.76°)
OKLaboklab(41.82% 0.143 0.0125)
OKLCHoklch(41.82% 0.144 5)
XYZxyz(11.3913, 6.3763, 5.7841)
Luminance0.0638 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871C42 #1C8761
analogous
#871C77 #871C42 #872C1C
triadic
#871C42 #42871C #1C4287
tetradic
#871C42 #77871C #1C8761 #2C1C87
square
#871C42 #77871C #1C8761 #2C1C87
split-complementary
#871C42 #1C872C #1C7787
monochromatic
#220710 #541129 #871C42 #BA275B #D84579

Accessibility & contrast

On white

9.23
#871C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#871C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871C42
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871C42#FFFFFF#000000##FFFFFF
##871C421.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373A43
Deuteranopia (green-blind)
#534F3F
Tritanopia (blue-blind)
#93002D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #871c42;
/* rgb */ color: rgb(135, 28, 66);
/* oklch */ color: oklch(41.8% 0.144 5.0);
Tailwind
colors: {
  custom: {
    50: '#af6476',
    500: '#871c42',
    950: '#000000',
  },
}
SCSS
$custom: #871c42;
$custom-light: #af6476;
$custom-dark: #000000;
JSON
{
  "hex": "#871c42",
  "rgb": {
    "r": 135,
    "g": 28,
    "b": 66
  },
  "hsl": {
    "h": 338.692,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.41816,
    "c": 0.14358,
    "h": 5
  },
  "luminance": 0.06375
}

Semantic roles & 50–950 ramp

primary
#871C42
secondary
#45BA90
accent
#E9AC3F
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #871C42

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

Preview Lab → · Contrast checker → · Palette generator →

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