#871A27#871A27

#871A27 is a dark, vivid red. Relative luminance 0.060; OKLCH L 41.0% C 0.143 H 20.4°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#871A27
RGBrgb(135, 26, 39)
HSLhsl(353, 68%, 32%)
HSVhsv(353, 81%, 53%)
CMYKcmyk(0%, 80.7%, 71.1%, 47.1%)
CIE-LABlab(29.51, 45.49, 21.47)
CIE-LCHlch(29.51, 50.30, 25.27°)
OKLaboklab(41% 0.1341 0.05)
OKLCHoklch(41% 0.143 20.4)
XYZxyz(10.7285, 6.0378, 2.5196)
Luminance0.0604 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A27 #1A877A
analogous
#871A5E #871A27 #87441A
triadic
#871A27 #27871A #1A2787
tetradic
#871A27 #5E871A #1A877A #441A87
square
#871A27 #5E871A #1A877A #441A87
split-complementary
#871A27 #1A8744 #1A5E87
monochromatic
#200609 #541018 #871A27 #BA2436 #DA4153

Accessibility & contrast

On white

9.51
#871A27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#871A27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A27
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A27#FFFFFF#000000##FFFFFF
##871A271.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3727
Deuteranopia (green-blind)
#564E24
Tritanopia (blue-blind)
#950020
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #871a27;
/* rgb */ color: rgb(135, 26, 39);
/* oklch */ color: oklch(41.0% 0.143 20.4);
Tailwind
colors: {
  custom: {
    50: '#b16261',
    500: '#871a27',
    950: '#000000',
  },
}
SCSS
$custom: #871a27;
$custom-light: #b16261;
$custom-dark: #000000;
JSON
{
  "hex": "#871a27",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 39
  },
  "hsl": {
    "h": 352.844,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41002,
    "c": 0.14307,
    "h": 20.4
  },
  "luminance": 0.06036
}

Semantic roles & 50–950 ramp

primary
#871A27
secondary
#42BAAC
accent
#EBD63D
background
#FBF6F5
surface
#F7EBE9
border
#D0C6C5
text
#120605
muted
#817A79

Preview Lab

Preview with #871A27

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

Preview Lab → · Contrast checker → · Palette generator →

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