#871A40#871A40

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

Color values

HEX#871A40
RGBrgb(135, 26, 64)
HSLhsl(339, 68%, 32%)
HSVhsv(339, 81%, 53%)
CMYKcmyk(0%, 80.7%, 52.6%, 47.1%)
CIE-LABlab(30.06, 47.22, 5.65)
CIE-LCHlch(30.06, 47.56, 6.82°)
OKLaboklab(41.59% 0.1443 0.0148)
OKLCHoklch(41.59% 0.145 5.8)
XYZxyz(11.2875, 6.2614, 5.4637)
Luminance0.0626 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A40 #1A8761
analogous
#871A77 #871A40 #872B1A
triadic
#871A40 #40871A #1A4087
tetradic
#871A40 #77871A #1A8761 #2B1A87
square
#871A40 #77871A #1A8761 #2B1A87
split-complementary
#871A40 #1A872B #1A7787
monochromatic
#20060F #541028 #871A40 #BA2458 #DA4176

Accessibility & contrast

On white

9.33
#871A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#871A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A40
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A40#FFFFFF#000000##FFFFFF
##871A401.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363941
Deuteranopia (green-blind)
#534F3D
Tritanopia (blue-blind)
#94002B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #871a40;
/* rgb */ color: rgb(135, 26, 64);
/* oklch */ color: oklch(41.6% 0.145 5.8);
Tailwind
colors: {
  custom: {
    50: '#b06374',
    500: '#871a40',
    950: '#000000',
  },
}
SCSS
$custom: #871a40;
$custom-light: #b06374;
$custom-dark: #000000;
JSON
{
  "hex": "#871a40",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 64
  },
  "hsl": {
    "h": 339.083,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41592,
    "c": 0.14505,
    "h": 5.8
  },
  "luminance": 0.0626
}

Semantic roles & 50–950 ramp

primary
#871A40
secondary
#42BA91
accent
#EBAE3D
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #871A40

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

Preview Lab → · Contrast checker → · Palette generator →

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