#8E171B#8E171B

#8E171B is a dark, vivid red. Relative luminance 0.064; OKLCH L 42.0% C 0.153 H 25.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#8E171B
RGBrgb(142, 23, 27)
HSLhsl(358, 72%, 32%)
HSVhsv(358, 84%, 56%)
CMYKcmyk(0%, 83.8%, 81%, 44.3%)
CIE-LABlab(30.51, 47.98, 30.53)
CIE-LCHlch(30.51, 56.87, 32.46°)
OKLaboklab(41.95% 0.1382 0.0664)
OKLCHoklch(41.95% 0.153 25.6)
XYZxyz(11.6610, 6.4446, 1.6666)
Luminance0.0644 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E171B #178E8A
analogous
#8E1757 #8E171B #8E4E17
triadic
#8E171B #1B8E17 #171B8E
tetradic
#8E171B #578E17 #178E8A #4E178E
square
#8E171B #578E17 #178E8A #4E178E
split-complementary
#8E171B #178E4E #17578E
monochromatic
#250607 #590E11 #8E171B #C32025 #E03F45

Accessibility & contrast

On white

9.18
#8E171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#8E171B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E171B
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E171B#FFFFFF#000000##FFFFFF
##8E171B1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E371A
Deuteranopia (green-blind)
#5B5116
Tritanopia (blue-blind)
#9D001A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8e171b;
/* rgb */ color: rgb(142, 23, 27);
/* oklch */ color: oklch(42.0% 0.153 25.6);
Tailwind
colors: {
  custom: {
    50: '#b86258',
    500: '#8e171b',
    950: '#000000',
  },
}
SCSS
$custom: #8e171b;
$custom-light: #b86258;
$custom-dark: #000000;
JSON
{
  "hex": "#8e171b",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 357.983,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41952,
    "c": 0.15335,
    "h": 25.6
  },
  "luminance": 0.06443
}

Semantic roles & 50–950 ramp

primary
#8E171B
secondary
#40C0BC
accent
#EFE939
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8E171B

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

Preview Lab → · Contrast checker → · Palette generator →

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