#8E172A#8E172A

#8E172A is a dark, vivid red. Relative luminance 0.065; OKLCH L 42.2% C 0.152 H 19.1°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#8E172A
RGBrgb(142, 23, 42)
HSLhsl(350, 72%, 32%)
HSVhsv(350, 84%, 56%)
CMYKcmyk(0%, 83.8%, 70.4%, 44.3%)
CIE-LABlab(30.72, 48.63, 21.34)
CIE-LCHlch(30.72, 53.10, 23.69°)
OKLaboklab(42.18% 0.1438 0.0499)
OKLCHoklch(42.18% 0.152 19.1)
XYZxyz(11.8810, 6.5326, 2.8254)
Luminance0.0653 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E172A #178E7B
analogous
#8E1766 #8E172A #8E3F17
triadic
#8E172A #2A8E17 #172A8E
tetradic
#8E172A #668E17 #178E7B #3F178E
square
#8E172A #668E17 #178E7B #3F178E
split-complementary
#8E172A #178E3F #17668E
monochromatic
#25060B #590E1A #8E172A #C3203A #E03F59

Accessibility & contrast

On white

9.11
#8E172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#8E172A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E172A
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E172A#FFFFFF#000000##FFFFFF
##8E172A1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C382A
Deuteranopia (green-blind)
#5A5126
Tritanopia (blue-blind)
#9D0020
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8e172a;
/* rgb */ color: rgb(142, 23, 42);
/* oklch */ color: oklch(42.2% 0.152 19.1);
Tailwind
colors: {
  custom: {
    50: '#b76263',
    500: '#8e172a',
    950: '#000000',
  },
}
SCSS
$custom: #8e172a;
$custom-light: #b76263;
$custom-dark: #000000;
JSON
{
  "hex": "#8e172a",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 350.42,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42175,
    "c": 0.1522,
    "h": 19.1
  },
  "luminance": 0.06531
}

Semantic roles & 50–950 ramp

primary
#8E172A
secondary
#40C0AC
accent
#EFD239
background
#FCF6F5
surface
#F8EBEA
border
#D1C6C6
text
#130605
muted
#827A79

Preview Lab

Preview with #8E172A

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

Preview Lab → · Contrast checker → · Palette generator →

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