#8F172C#8F172C

#8F172C is a dark, vivid red. Relative luminance 0.066; OKLCH L 42.4% C 0.153 H 18.3°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#8F172C
RGBrgb(143, 23, 44)
HSLhsl(350, 72%, 33%)
HSVhsv(350, 84%, 56%)
CMYKcmyk(0%, 83.9%, 69.2%, 43.9%)
CIE-LABlab(30.96, 49.03, 20.39)
CIE-LCHlch(30.96, 53.10, 22.58°)
OKLaboklab(42.41% 0.1454 0.048)
OKLCHoklch(42.41% 0.153 18.3)
XYZxyz(12.0901, 6.6362, 3.0267)
Luminance0.0663 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F172C #178F7A
analogous
#8F1768 #8F172C #8F3E17
triadic
#8F172C #2C8F17 #172C8F
tetradic
#8F172C #688F17 #178F7A #3E178F
square
#8F172C #688F17 #178F7A #3E178F
split-complementary
#8F172C #178F3E #17688F
monochromatic
#26060C #5A0F1C #8F172C #C41F3C #E0405C

Accessibility & contrast

On white

9.03
#8F172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#8F172C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F172C
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F172C#FFFFFF#000000##FFFFFF
##8F172C1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C392C
Deuteranopia (green-blind)
#5A5228
Tritanopia (blue-blind)
#9E0021
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8f172c;
/* rgb */ color: rgb(143, 23, 44);
/* oklch */ color: oklch(42.4% 0.153 18.3);
Tailwind
colors: {
  custom: {
    50: '#b76264',
    500: '#8f172c',
    950: '#000000',
  },
}
SCSS
$custom: #8f172c;
$custom-light: #b76264;
$custom-dark: #000000;
JSON
{
  "hex": "#8f172c",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 349.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42405,
    "c": 0.15312,
    "h": 18.3
  },
  "luminance": 0.06634
}

Semantic roles & 50–950 ramp

primary
#8F172C
secondary
#41C1AA
accent
#EFCF39
background
#FCF6F6
surface
#F8EBEB
border
#D1C6C6
text
#130605
muted
#827A7A

Preview Lab

Preview with #8F172C

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

Preview Lab → · Contrast checker → · Palette generator →

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