#871B45#871B45

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

Color values

HEX#871B45
RGBrgb(135, 27, 69)
HSLhsl(337, 67%, 32%)
HSVhsv(337, 80%, 53%)
CMYKcmyk(0%, 80%, 48.9%, 47.1%)
CIE-LABlab(30.32, 47.36, 2.69)
CIE-LCHlch(30.32, 47.43, 3.25°)
OKLaboklab(41.83% 0.1452 0.0074)
OKLCHoklch(41.83% 0.145 2.9)
XYZxyz(11.4588, 6.3660, 6.2544)
Luminance0.0636 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B45 #1B875D
analogous
#871B7B #871B45 #87271B
triadic
#871B45 #45871B #1B4587
tetradic
#871B45 #7B871B #1B875D #271B87
square
#871B45 #7B871B #1B875D #271B87
split-complementary
#871B45 #1B8727 #1B7B87
monochromatic
#210711 #54112B #871B45 #BA255F #D9437D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##871B45#FFFFFF#000000##FFFFFF
##871B451.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)
#353A46
Deuteranopia (green-blind)
#524F42
Tritanopia (blue-blind)
#93002E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #871b45;
/* rgb */ color: rgb(135, 27, 69);
/* oklch */ color: oklch(41.8% 0.145 2.9);
Tailwind
colors: {
  custom: {
    50: '#af6378',
    500: '#871b45',
    950: '#000000',
  },
}
SCSS
$custom: #871b45;
$custom-light: #af6378;
$custom-dark: #000000;
JSON
{
  "hex": "#871b45",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 69
  },
  "hsl": {
    "h": 336.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.41827,
    "c": 0.14539,
    "h": 2.9
  },
  "luminance": 0.06364
}

Semantic roles & 50–950 ramp

primary
#871B45
secondary
#44BA8C
accent
#EAA73E
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #871B45

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

Preview Lab → · Contrast checker → · Palette generator →

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