#8F172B#8F172B

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

Color values

HEX#8F172B
RGBrgb(143, 23, 43)
HSLhsl(350, 72%, 33%)
HSVhsv(350, 84%, 56%)
CMYKcmyk(0%, 83.9%, 69.9%, 43.9%)
CIE-LABlab(30.95, 48.97, 21.02)
CIE-LCHlch(30.95, 53.29, 23.23°)
OKLaboklab(42.39% 0.145 0.0492)
OKLCHoklch(42.39% 0.153 18.8)
XYZxyz(12.0715, 6.6288, 2.9289)
Luminance0.0663 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F172B #178F7B
analogous
#8F1767 #8F172B #8F3F17
triadic
#8F172B #2B8F17 #172B8F
tetradic
#8F172B #678F17 #178F7B #3F178F
square
#8F172B #678F17 #178F7B #3F178F
split-complementary
#8F172B #178F3F #17678F
monochromatic
#26060B #5A0F1B #8F172B #C41F3B #E0405B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F172B#FFFFFF#000000##FFFFFF
##8F172B1.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)
#3C392B
Deuteranopia (green-blind)
#5A5227
Tritanopia (blue-blind)
#9E0020
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8f172b;
/* rgb */ color: rgb(143, 23, 43);
/* oklch */ color: oklch(42.4% 0.153 18.8);
Tailwind
colors: {
  custom: {
    50: '#b76264',
    500: '#8f172b',
    950: '#000000',
  },
}
SCSS
$custom: #8f172b;
$custom-light: #b76264;
$custom-dark: #000000;
JSON
{
  "hex": "#8f172b",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 350,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42386,
    "c": 0.15314,
    "h": 18.8
  },
  "luminance": 0.06627
}

Semantic roles & 50–950 ramp

primary
#8F172B
secondary
#41C1AB
accent
#EFD139
background
#FCF6F5
surface
#F8EBEA
border
#D1C6C6
text
#130605
muted
#827A79

Preview Lab

Preview with #8F172B

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

Preview Lab → · Contrast checker → · Palette generator →

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