#871A48#871A48

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

Color values

HEX#871A48
RGBrgb(135, 26, 72)
HSLhsl(335, 68%, 32%)
HSVhsv(335, 81%, 53%)
CMYKcmyk(0%, 80.7%, 46.7%, 47.1%)
CIE-LABlab(30.30, 47.95, 0.68)
CIE-LCHlch(30.30, 47.96, 0.81°)
OKLaboklab(41.85% 0.1473 0.0023)
OKLCHoklch(41.85% 0.147 0.9)
XYZxyz(11.5317, 6.3591, 6.7498)
Luminance0.0636 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A48 #1A8759
analogous
#871A7F #871A48 #87231A
triadic
#871A48 #48871A #1A4887
tetradic
#871A48 #7F871A #1A8759 #231A87
square
#871A48 #7F871A #1A8759 #231A87
split-complementary
#871A48 #1A8723 #1A7F87
monochromatic
#200611 #54102D #871A48 #BA2463 #DA4182

Accessibility & contrast

On white

9.24
#871A48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871A48
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A48#FFFFFF#000000##FFFFFF
##871A481.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#343A49
Deuteranopia (green-blind)
#514F45
Tritanopia (blue-blind)
#93012F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #871a48;
/* rgb */ color: rgb(135, 26, 72);
/* oklch */ color: oklch(41.8% 0.147 0.9);
Tailwind
colors: {
  custom: {
    50: '#af637a',
    500: '#871a48',
    950: '#000000',
  },
}
SCSS
$custom: #871a48;
$custom-light: #af637a;
$custom-dark: #000000;
JSON
{
  "hex": "#871a48",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 72
  },
  "hsl": {
    "h": 334.679,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41845,
    "c": 0.14732,
    "h": 0.9
  },
  "luminance": 0.06358
}

Semantic roles & 50–950 ramp

primary
#871A48
secondary
#42BA88
accent
#EBA13D
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110609
muted
#807A7B

Preview Lab

Preview with #871A48

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

Preview Lab → · Contrast checker → · Palette generator →

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