#8E172C#8E172C

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

Color values

HEX#8E172C
RGBrgb(142, 23, 44)
HSLhsl(349, 72%, 32%)
HSVhsv(349, 84%, 56%)
CMYKcmyk(0%, 83.8%, 69%, 44.3%)
CIE-LABlab(30.75, 48.74, 20.08)
CIE-LCHlch(30.75, 52.71, 22.39°)
OKLaboklab(42.21% 0.1446 0.0473)
OKLCHoklch(42.21% 0.152 18.1)
XYZxyz(11.9177, 6.5473, 3.0186)
Luminance0.0654 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E172C #178E79
analogous
#8E1767 #8E172C #8E3E17
triadic
#8E172C #2C8E17 #172C8E
tetradic
#8E172C #678E17 #178E79 #3E178E
square
#8E172C #678E17 #178E79 #3E178E
split-complementary
#8E172C #178E3E #17678E
monochromatic
#25060B #590E1C #8E172C #C3203C #E03F5C

Accessibility & contrast

On white

9.09
#8E172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E172C
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E172C#FFFFFF#000000##FFFFFF
##8E172C1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C382C
Deuteranopia (green-blind)
#595128
Tritanopia (blue-blind)
#9C0021
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8e172c;
/* rgb */ color: rgb(142, 23, 44);
/* oklch */ color: oklch(42.2% 0.152 18.1);
Tailwind
colors: {
  custom: {
    50: '#b76264',
    500: '#8e172c',
    950: '#000000',
  },
}
SCSS
$custom: #8e172c;
$custom-light: #b76264;
$custom-dark: #000000;
JSON
{
  "hex": "#8e172c",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 349.412,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42212,
    "c": 0.15216,
    "h": 18.1
  },
  "luminance": 0.06545
}

Semantic roles & 50–950 ramp

primary
#8E172C
secondary
#40C0AA
accent
#EFCF39
background
#FCF6F6
surface
#F8EBEB
border
#D1C6C6
text
#130605
muted
#827A7A

Preview Lab

Preview with #8E172C

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

Preview Lab → · Contrast checker → · Palette generator →

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