#871A45#871A45

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

Color values

HEX#871A45
RGBrgb(135, 26, 69)
HSLhsl(336, 68%, 32%)
HSVhsv(336, 81%, 53%)
CMYKcmyk(0%, 80.7%, 48.9%, 47.1%)
CIE-LABlab(30.21, 47.67, 2.53)
CIE-LCHlch(30.21, 47.74, 3.04°)
OKLaboklab(41.75% 0.1462 0.007)
OKLCHoklch(41.75% 0.146 2.7)
XYZxyz(11.4362, 6.3209, 6.2469)
Luminance0.0632 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A45 #1A875C
analogous
#871A7C #871A45 #87251A
triadic
#871A45 #45871A #1A4587
tetradic
#871A45 #7C871A #1A875C #251A87
square
#871A45 #7C871A #1A875C #251A87
split-complementary
#871A45 #1A8725 #1A7C87
monochromatic
#200611 #54102B #871A45 #BA245F #DA417E

Accessibility & contrast

On white

9.28
#871A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871A45
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A45#FFFFFF#000000##FFFFFF
##871A451.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353A46
Deuteranopia (green-blind)
#524F42
Tritanopia (blue-blind)
#93002D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #871a45;
/* rgb */ color: rgb(135, 26, 69);
/* oklch */ color: oklch(41.7% 0.146 2.7);
Tailwind
colors: {
  custom: {
    50: '#af6378',
    500: '#871a45',
    950: '#000000',
  },
}
SCSS
$custom: #871a45;
$custom-light: #af6378;
$custom-dark: #000000;
JSON
{
  "hex": "#871a45",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 69
  },
  "hsl": {
    "h": 336.33,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41746,
    "c": 0.14637,
    "h": 2.7
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

primary
#871A45
secondary
#42BA8B
accent
#EBA63D
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #871A45

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

Preview Lab → · Contrast checker → · Palette generator →

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