#871B42#871B42

#871B42 is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.7% C 0.145 H 4.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#871B42
RGBrgb(135, 27, 66)
HSLhsl(338, 67%, 32%)
HSVhsv(338, 80%, 53%)
CMYKcmyk(0%, 80%, 51.1%, 47.1%)
CIE-LABlab(30.23, 47.08, 4.56)
CIE-LCHlch(30.23, 47.30, 5.53°)
OKLaboklab(41.73% 0.1441 0.0121)
OKLCHoklch(41.73% 0.145 4.8)
XYZxyz(11.3680, 6.3297, 5.7763)
Luminance0.0633 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B42 #1B8760
analogous
#871B78 #871B42 #872A1B
triadic
#871B42 #42871B #1B4287
tetradic
#871B42 #78871B #1B8760 #2A1B87
square
#871B42 #78871B #1B8760 #2A1B87
split-complementary
#871B42 #1B872A #1B7887
monochromatic
#210710 #541129 #871B42 #BA255B #D94379

Accessibility & contrast

On white

9.27
#871B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#871B42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B42
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B42#FFFFFF#000000##FFFFFF
##871B421.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871b42;
/* rgb */ color: rgb(135, 27, 66);
/* oklch */ color: oklch(41.7% 0.145 4.8);
Tailwind
colors: {
  custom: {
    50: '#af6376',
    500: '#871b42',
    950: '#000000',
  },
}
SCSS
$custom: #871b42;
$custom-light: #af6376;
$custom-dark: #000000;
JSON
{
  "hex": "#871b42",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 66
  },
  "hsl": {
    "h": 338.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.41733,
    "c": 0.14457,
    "h": 4.8
  },
  "luminance": 0.06328
}

Semantic roles & 50–950 ramp

primary
#871B42
secondary
#44BA8F
accent
#EAAC3E
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #871B42

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

Preview Lab → · Contrast checker → · Palette generator →

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