#8D172F#8D172F

#8D172F is a dark, vivid red. Relative luminance 0.065; OKLCH L 42.1% C 0.151 H 16.4°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#8D172F
RGBrgb(141, 23, 47)
HSLhsl(348, 72%, 32%)
HSVhsv(348, 84%, 55%)
CMYKcmyk(0%, 83.7%, 66.7%, 44.7%)
CIE-LABlab(30.60, 48.61, 17.87)
CIE-LCHlch(30.60, 51.79, 20.18°)
OKLaboklab(42.08% 0.1451 0.0427)
OKLCHoklch(42.08% 0.151 16.4)
XYZxyz(11.8053, 6.4826, 3.3184)
Luminance0.0648 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D172F #178D75
analogous
#8D176A #8D172F #8D3A17
triadic
#8D172F #2F8D17 #172F8D
tetradic
#8D172F #6A8D17 #178D75 #3A178D
square
#8D172F #6A8D17 #178D75 #3A178D
split-complementary
#8D172F #178D3A #176A8D
monochromatic
#24060C #580E1D #8D172F #C22041 #E03F5F

Accessibility & contrast

On white

9.15
#8D172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#8D172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D172F
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D172F#FFFFFF#000000##FFFFFF
##8D172F1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B382F
Deuteranopia (green-blind)
#58512C
Tritanopia (blue-blind)
#9B0022
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8d172f;
/* rgb */ color: rgb(141, 23, 47);
/* oklch */ color: oklch(42.1% 0.151 16.4);
Tailwind
colors: {
  custom: {
    50: '#b66267',
    500: '#8d172f',
    950: '#000000',
  },
}
SCSS
$custom: #8d172f;
$custom-light: #b66267;
$custom-dark: #000000;
JSON
{
  "hex": "#8d172f",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 347.797,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42079,
    "c": 0.15122,
    "h": 16.4
  },
  "luminance": 0.06481
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8D172F

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

Preview Lab → · Contrast checker → · Palette generator →

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