#8E172F#8E172F

#8E172F is a dark, vivid red. Relative luminance 0.066; OKLCH L 42.3% C 0.152 H 16.6°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#8E172F
RGBrgb(142, 23, 47)
HSLhsl(348, 72%, 32%)
HSVhsv(348, 84%, 56%)
CMYKcmyk(0%, 83.8%, 66.9%, 44.3%)
CIE-LABlab(30.81, 48.90, 18.18)
CIE-LCHlch(30.81, 52.17, 20.40°)
OKLaboklab(42.27% 0.1458 0.0434)
OKLCHoklch(42.27% 0.152 16.6)
XYZxyz(11.9761, 6.5707, 3.3264)
Luminance0.0657 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E172F #178E76
analogous
#8E176B #8E172F #8E3A17
triadic
#8E172F #2F8E17 #172F8E
tetradic
#8E172F #6B8E17 #178E76 #3A178E
square
#8E172F #6B8E17 #178E76 #3A178E
split-complementary
#8E172F #178E3A #176B8E
monochromatic
#25060C #590E1E #8E172F #C32040 #E03F60

Accessibility & contrast

On white

9.08
#8E172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E172F
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E172F#FFFFFF#000000##FFFFFF
##8E172F1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B392F
Deuteranopia (green-blind)
#59512C
Tritanopia (blue-blind)
#9C0022
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8e172f;
/* rgb */ color: rgb(142, 23, 47);
/* oklch */ color: oklch(42.3% 0.152 16.6);
Tailwind
colors: {
  custom: {
    50: '#b66267',
    500: '#8e172f',
    950: '#000000',
  },
}
SCSS
$custom: #8e172f;
$custom-light: #b66267;
$custom-dark: #000000;
JSON
{
  "hex": "#8e172f",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 347.899,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42271,
    "c": 0.15217,
    "h": 16.6
  },
  "luminance": 0.06569
}

Semantic roles & 50–950 ramp

primary
#8E172F
secondary
#40C0A7
accent
#EFCA39
background
#FCF6F6
surface
#F8EBEB
border
#D1C6C6
text
#130606
muted
#827A7A

Preview Lab

Preview with #8E172F

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

Preview Lab → · Contrast checker → · Palette generator →

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