#8F171B#8F171B

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

Color values

HEX#8F171B
RGBrgb(143, 23, 27)
HSLhsl(358, 72%, 33%)
HSVhsv(358, 84%, 56%)
CMYKcmyk(0%, 83.9%, 81.1%, 43.9%)
CIE-LABlab(30.72, 48.29, 30.81)
CIE-LCHlch(30.72, 57.28, 32.54°)
OKLaboklab(42.15% 0.1391 0.0669)
OKLCHoklch(42.15% 0.154 25.7)
XYZxyz(11.8334, 6.5335, 1.6747)
Luminance0.0653 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F171B #178F8B
analogous
#8F1757 #8F171B #8F4F17
triadic
#8F171B #1B8F17 #171B8F
tetradic
#8F171B #578F17 #178F8B #4F178F
square
#8F171B #578F17 #178F8B #4F178F
split-complementary
#8F171B #178F4F #17578F
monochromatic
#260607 #5A0F11 #8F171B #C41F25 #E04045

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F171B#FFFFFF#000000##FFFFFF
##8F171B1.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)
#3E381A
Deuteranopia (green-blind)
#5B5115
Tritanopia (blue-blind)
#9E001A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #8f171b;
/* rgb */ color: rgb(143, 23, 27);
/* oklch */ color: oklch(42.1% 0.154 25.7);
Tailwind
colors: {
  custom: {
    50: '#b96258',
    500: '#8f171b',
    950: '#000000',
  },
}
SCSS
$custom: #8f171b;
$custom-light: #b96258;
$custom-dark: #000000;
JSON
{
  "hex": "#8f171b",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 358,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42147,
    "c": 0.15432,
    "h": 25.7
  },
  "luminance": 0.06532
}

Semantic roles & 50–950 ramp

primary
#8F171B
secondary
#41C1BC
accent
#EFE939
background
#FCF6F5
surface
#F8EBE9
border
#D1C6C5
text
#130603
muted
#827A78

Preview Lab

Preview with #8F171B

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

Preview Lab → · Contrast checker → · Palette generator →

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