#8B171F#8B171F

#8B171F is a dark, vivid red. Relative luminance 0.062; OKLCH L 41.4% C 0.150 H 23.9°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#8B171F
RGBrgb(139, 23, 31)
HSLhsl(356, 72%, 32%)
HSVhsv(356, 83%, 55%)
CMYKcmyk(0%, 83.5%, 77.7%, 45.5%)
CIE-LABlab(29.92, 47.23, 27.26)
CIE-LCHlch(29.92, 54.53, 30.00°)
OKLaboklab(41.42% 0.1372 0.0607)
OKLCHoklch(41.42% 0.15 23.9)
XYZxyz(11.2025, 6.2025, 1.9034)
Luminance0.0620 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B171F #178B83
analogous
#8B1759 #8B171F #8B4917
triadic
#8B171F #1F8B17 #171F8B
tetradic
#8B171F #598B17 #178B83 #49178B
square
#8B171F #598B17 #178B83 #49178B
split-complementary
#8B171F #178B49 #17598B
monochromatic
#220608 #560E13 #8B171F #C0202B #DF3D49

Accessibility & contrast

On white

9.37
#8B171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#8B171F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B171F
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B171F#FFFFFF#000000##FFFFFF
##8B171F1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C371E
Deuteranopia (green-blind)
#594F1A
Tritanopia (blue-blind)
#9A001C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #8b171f;
/* rgb */ color: rgb(139, 23, 31);
/* oklch */ color: oklch(41.4% 0.150 23.9);
Tailwind
colors: {
  custom: {
    50: '#b5615b',
    500: '#8b171f',
    950: '#000000',
  },
}
SCSS
$custom: #8b171f;
$custom-light: #b5615b;
$custom-dark: #000000;
JSON
{
  "hex": "#8b171f",
  "rgb": {
    "r": 139,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 355.862,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.41417,
    "c": 0.14999,
    "h": 23.9
  },
  "luminance": 0.06201
}

Semantic roles & 50–950 ramp

primary
#8B171F
secondary
#3FBFB6
accent
#EEE239
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130604
muted
#827A79

Preview Lab

Preview with #8B171F

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

Preview Lab → · Contrast checker → · Palette generator →

#8B171F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva