#8F172A#8F172A

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

Color values

HEX#8F172A
RGBrgb(143, 23, 42)
HSLhsl(351, 72%, 33%)
HSVhsv(351, 84%, 56%)
CMYKcmyk(0%, 83.9%, 70.6%, 43.9%)
CIE-LABlab(30.93, 48.92, 21.64)
CIE-LCHlch(30.93, 53.50, 23.87°)
OKLaboklab(42.37% 0.1446 0.0505)
OKLCHoklch(42.37% 0.153 19.2)
XYZxyz(12.0534, 6.6215, 2.8335)
Luminance0.0662 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F172A #178F7C
analogous
#8F1766 #8F172A #8F4017
triadic
#8F172A #2A8F17 #172A8F
tetradic
#8F172A #668F17 #178F7C #40178F
square
#8F172A #668F17 #178F7C #40178F
split-complementary
#8F172A #178F40 #17668F
monochromatic
#26060B #5A0F1B #8F172A #C41F39 #E04059

Accessibility & contrast

On white

9.04
#8F172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#8F172A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F172A
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F172A#FFFFFF#000000##FFFFFF
##8F172A1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D392A
Deuteranopia (green-blind)
#5A5226
Tritanopia (blue-blind)
#9E0020
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8f172a;
/* rgb */ color: rgb(143, 23, 42);
/* oklch */ color: oklch(42.4% 0.153 19.2);
Tailwind
colors: {
  custom: {
    50: '#b86263',
    500: '#8f172a',
    950: '#000000',
  },
}
SCSS
$custom: #8f172a;
$custom-light: #b86263;
$custom-dark: #000000;
JSON
{
  "hex": "#8f172a",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 350.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42368,
    "c": 0.15317,
    "h": 19.2
  },
  "luminance": 0.0662
}

Semantic roles & 50–950 ramp

primary
#8F172A
secondary
#41C1AD
accent
#EFD239
background
#FCF6F5
surface
#F8EBEA
border
#D1C6C6
text
#130605
muted
#827A79

Preview Lab

Preview with #8F172A

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

Preview Lab → · Contrast checker → · Palette generator →

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