#8F171F#8F171F

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

Color values

HEX#8F171F
RGBrgb(143, 23, 31)
HSLhsl(356, 72%, 33%)
HSVhsv(356, 84%, 56%)
CMYKcmyk(0%, 83.9%, 78.3%, 43.9%)
CIE-LABlab(30.77, 48.43, 28.44)
CIE-LCHlch(30.77, 56.16, 30.42°)
OKLaboklab(42.2% 0.1404 0.063)
OKLCHoklch(42.2% 0.154 24.2)
XYZxyz(11.8829, 6.5533, 1.9353)
Luminance0.0655 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F171F #178F87
analogous
#8F175B #8F171F #8F4B17
triadic
#8F171F #1F8F17 #171F8F
tetradic
#8F171F #5B8F17 #178F87 #4B178F
square
#8F171F #5B8F17 #178F87 #4B178F
split-complementary
#8F171F #178F4B #175B8F
monochromatic
#260608 #5A0F14 #8F171F #C41F2A #E0404B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F171F#FFFFFF#000000##FFFFFF
##8F171F1.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)
#3E381E
Deuteranopia (green-blind)
#5B521A
Tritanopia (blue-blind)
#9E001C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8f171f;
/* rgb */ color: rgb(143, 23, 31);
/* oklch */ color: oklch(42.2% 0.154 24.2);
Tailwind
colors: {
  custom: {
    50: '#b8625b',
    500: '#8f171f',
    950: '#000000',
  },
}
SCSS
$custom: #8f171f;
$custom-light: #b8625b;
$custom-dark: #000000;
JSON
{
  "hex": "#8f171f",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 356,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42197,
    "c": 0.15391,
    "h": 24.2
  },
  "luminance": 0.06551
}

Semantic roles & 50–950 ramp

primary
#8F171F
secondary
#41C1B8
accent
#EFE339
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130604
muted
#827A79

Preview Lab

Preview with #8F171F

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

Preview Lab → · Contrast checker → · Palette generator →

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