#871B1F#871B1F

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

Color values

HEX#871B1F
RGBrgb(135, 27, 31)
HSLhsl(358, 67%, 32%)
HSVhsv(358, 80%, 53%)
CMYKcmyk(0%, 80%, 77%, 47.1%)
CIE-LABlab(29.50, 44.79, 26.56)
CIE-LCHlch(29.50, 52.07, 30.67°)
OKLaboklab(40.96% 0.13 0.0595)
OKLCHoklch(40.96% 0.143 24.6)
XYZxyz(10.6322, 6.0354, 1.9012)
Luminance0.0603 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B1F #1B8783
analogous
#871B55 #871B1F #874D1B
triadic
#871B1F #1F871B #1B1F87
tetradic
#871B1F #55871B #1B8783 #4D1B87
square
#871B1F #55871B #1B8783 #4D1B87
split-complementary
#871B1F #1B874D #1B5587
monochromatic
#210708 #541113 #871B1F #BA252B #D94349

Accessibility & contrast

On white

9.52
#871B1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871B1F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B1F#FFFFFF#000000##FFFFFF
##871B1F1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C371E
Deuteranopia (green-blind)
#574E1B
Tritanopia (blue-blind)
#95001E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #871b1f;
/* rgb */ color: rgb(135, 27, 31);
/* oklch */ color: oklch(41.0% 0.143 24.6);
Tailwind
colors: {
  custom: {
    50: '#b2625b',
    500: '#871b1f',
    950: '#000000',
  },
}
SCSS
$custom: #871b1f;
$custom-light: #b2625b;
$custom-dark: #000000;
JSON
{
  "hex": "#871b1f",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 31
  },
  "hsl": {
    "h": 357.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4096,
    "c": 0.14292,
    "h": 24.6
  },
  "luminance": 0.06034
}

Semantic roles & 50–950 ramp

primary
#871B1F
secondary
#44BAB6
accent
#EAE33E
background
#FBF6F5
surface
#F7EBE9
border
#D0C6C5
text
#120604
muted
#817A79

Preview Lab

Preview with #871B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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