#871A1F#871A1F

#871A1F is a dark, vivid red. Relative luminance 0.060; OKLCH L 40.9% C 0.144 H 24.3°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#871A1F
RGBrgb(135, 26, 31)
HSLhsl(357, 68%, 32%)
HSVhsv(357, 81%, 53%)
CMYKcmyk(0%, 80.7%, 77%, 47.1%)
CIE-LABlab(29.39, 45.11, 26.44)
CIE-LCHlch(29.39, 52.28, 30.37°)
OKLaboklab(40.88% 0.131 0.0592)
OKLCHoklch(40.88% 0.144 24.3)
XYZxyz(10.6096, 5.9903, 1.8937)
Luminance0.0599 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A1F #1A8782
analogous
#871A56 #871A1F #874C1A
triadic
#871A1F #1F871A #1A1F87
tetradic
#871A1F #56871A #1A8782 #4C1A87
square
#871A1F #56871A #1A8782 #4C1A87
split-complementary
#871A1F #1A874C #1A5687
monochromatic
#200607 #541013 #871A1F #BA242B #DA4148

Accessibility & contrast

On white

9.56
#871A1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#871A1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A1F
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A1F#FFFFFF#000000##FFFFFF
##871A1F1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871a1f;
/* rgb */ color: rgb(135, 26, 31);
/* oklch */ color: oklch(40.9% 0.144 24.3);
Tailwind
colors: {
  custom: {
    50: '#b2625b',
    500: '#871a1f',
    950: '#000000',
  },
}
SCSS
$custom: #871a1f;
$custom-light: #b2625b;
$custom-dark: #000000;
JSON
{
  "hex": "#871a1f",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 31
  },
  "hsl": {
    "h": 357.248,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40875,
    "c": 0.14373,
    "h": 24.3
  },
  "luminance": 0.05989
}

Semantic roles & 50–950 ramp

primary
#871A1F
secondary
#42BAB5
accent
#EBE33D
background
#FBF6F5
surface
#F7EBE9
border
#D0C6C5
text
#120604
muted
#817A79

Preview Lab

Preview with #871A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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