#8F172F#8F172F

#8F172F is a dark, vivid red. Relative luminance 0.067; OKLCH L 42.5% C 0.153 H 16.7°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#8F172F
RGBrgb(143, 23, 47)
HSLhsl(348, 72%, 33%)
HSVhsv(348, 84%, 56%)
CMYKcmyk(0%, 83.9%, 67.1%, 43.9%)
CIE-LABlab(31.02, 49.19, 18.49)
CIE-LCHlch(31.02, 52.56, 20.60°)
OKLaboklab(42.46% 0.1466 0.0441)
OKLCHoklch(42.46% 0.153 16.7)
XYZxyz(12.1485, 6.6596, 3.3345)
Luminance0.0666 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F172F #178F77
analogous
#8F176B #8F172F #8F3B17
triadic
#8F172F #2F8F17 #172F8F
tetradic
#8F172F #6B8F17 #178F77 #3B178F
square
#8F172F #6B8F17 #178F77 #3B178F
split-complementary
#8F172F #178F3B #176B8F
monochromatic
#26060C #5A0F1E #8F172F #C41F40 #E04060

Accessibility & contrast

On white

9.01
#8F172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F172F
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F172F#FFFFFF#000000##FFFFFF
##8F172F1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C392F
Deuteranopia (green-blind)
#5A522B
Tritanopia (blue-blind)
#9D0022
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8f172f;
/* rgb */ color: rgb(143, 23, 47);
/* oklch */ color: oklch(42.5% 0.153 16.7);
Tailwind
colors: {
  custom: {
    50: '#b76267',
    500: '#8f172f',
    950: '#000000',
  },
}
SCSS
$custom: #8f172f;
$custom-light: #b76267;
$custom-dark: #000000;
JSON
{
  "hex": "#8f172f",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 348,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42463,
    "c": 0.15312,
    "h": 16.7
  },
  "luminance": 0.06658
}

Semantic roles & 50–950 ramp

primary
#8F172F
secondary
#41C1A7
accent
#EFCB39
background
#FCF6F6
surface
#F8EBEB
border
#D1C6C6
text
#130606
muted
#827A7A

Preview Lab

Preview with #8F172F

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

Preview Lab → · Contrast checker → · Palette generator →

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