#871D42#871D42

#871D42 is a dark, vivid pink. Relative luminance 0.064; OKLCH L 41.9% C 0.143 H 5.2°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#871D42
RGBrgb(135, 29, 66)
HSLhsl(339, 65%, 32%)
HSVhsv(339, 79%, 53%)
CMYKcmyk(0%, 78.5%, 51.1%, 47.1%)
CIE-LABlab(30.46, 46.44, 4.88)
CIE-LCHlch(30.46, 46.69, 6.00°)
OKLaboklab(41.9% 0.142 0.0129)
OKLCHoklch(41.9% 0.143 5.2)
XYZxyz(11.4154, 6.4245, 5.7922)
Luminance0.0642 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D42 #1D8762
analogous
#871D77 #871D42 #872D1D
triadic
#871D42 #42871D #1D4287
tetradic
#871D42 #77871D #1D8762 #2D1D87
square
#871D42 #77871D #1D8762 #2D1D87
split-complementary
#871D42 #1D872D #1D7787
monochromatic
#220711 #551229 #871D42 #B9285B #D74779

Accessibility & contrast

On white

9.19
#871D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871D42
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D42#FFFFFF#000000##FFFFFF
##871D421.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871d42;
/* rgb */ color: rgb(135, 29, 66);
/* oklch */ color: oklch(41.9% 0.143 5.2);
Tailwind
colors: {
  custom: {
    50: '#af6476',
    500: '#871d42',
    950: '#000000',
  },
}
SCSS
$custom: #871d42;
$custom-light: #af6476;
$custom-dark: #000000;
JSON
{
  "hex": "#871d42",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 66
  },
  "hsl": {
    "h": 339.057,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41902,
    "c": 0.14256,
    "h": 5.2
  },
  "luminance": 0.06423
}

Semantic roles & 50–950 ramp

primary
#871D42
secondary
#46B991
accent
#E8AD40
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #871D42

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

Preview Lab → · Contrast checker → · Palette generator →

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