#871A42#871A42

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

Color values

HEX#871A42
RGBrgb(135, 26, 66)
HSLhsl(338, 68%, 32%)
HSVhsv(338, 81%, 53%)
CMYKcmyk(0%, 80.7%, 51.1%, 47.1%)
CIE-LABlab(30.12, 47.40, 4.40)
CIE-LCHlch(30.12, 47.60, 5.30°)
OKLaboklab(41.65% 0.1451 0.0117)
OKLCHoklch(41.65% 0.146 4.6)
XYZxyz(11.3454, 6.2846, 5.7688)
Luminance0.0628 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A42 #1A875F
analogous
#871A79 #871A42 #87291A
triadic
#871A42 #42871A #1A4287
tetradic
#871A42 #79871A #1A875F #291A87
square
#871A42 #79871A #1A875F #291A87
split-complementary
#871A42 #1A8729 #1A7987
monochromatic
#200610 #541029 #871A42 #BA245B #DA4179

Accessibility & contrast

On white

9.31
#871A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#871A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A42
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A42#FFFFFF#000000##FFFFFF
##871A421.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871a42;
/* rgb */ color: rgb(135, 26, 66);
/* oklch */ color: oklch(41.7% 0.146 4.6);
Tailwind
colors: {
  custom: {
    50: '#af6376',
    500: '#871a42',
    950: '#000000',
  },
}
SCSS
$custom: #871a42;
$custom-light: #af6376;
$custom-dark: #000000;
JSON
{
  "hex": "#871a42",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 337.982,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41652,
    "c": 0.14554,
    "h": 4.6
  },
  "luminance": 0.06283
}

Semantic roles & 50–950 ramp

primary
#871A42
secondary
#42BA8E
accent
#EBAB3D
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #871A42

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

Preview Lab → · Contrast checker → · Palette generator →

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