#8F172E#8F172E

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

Color values

HEX#8F172E
RGBrgb(143, 23, 46)
HSLhsl(349, 72%, 33%)
HSVhsv(349, 84%, 56%)
CMYKcmyk(0%, 83.9%, 67.8%, 43.9%)
CIE-LABlab(31.00, 49.14, 19.13)
CIE-LCHlch(31.00, 52.73, 21.27°)
OKLaboklab(42.44% 0.1462 0.0454)
OKLCHoklch(42.44% 0.153 17.2)
XYZxyz(12.1286, 6.6516, 3.2295)
Luminance0.0665 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F172E #178F78
analogous
#8F176A #8F172E #8F3C17
triadic
#8F172E #2E8F17 #172E8F
tetradic
#8F172E #6A8F17 #178F78 #3C178F
square
#8F172E #6A8F17 #178F78 #3C178F
split-complementary
#8F172E #178F3C #176A8F
monochromatic
#26060C #5A0F1D #8F172E #C41F3F #E0405F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F172E#FFFFFF#000000##FFFFFF
##8F172E1.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)
#3C392E
Deuteranopia (green-blind)
#5A522A
Tritanopia (blue-blind)
#9D0021
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8f172e;
/* rgb */ color: rgb(143, 23, 46);
/* oklch */ color: oklch(42.4% 0.153 17.2);
Tailwind
colors: {
  custom: {
    50: '#b76266',
    500: '#8f172e',
    950: '#000000',
  },
}
SCSS
$custom: #8f172e;
$custom-light: #b76266;
$custom-dark: #000000;
JSON
{
  "hex": "#8f172e",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 348.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42443,
    "c": 0.15311,
    "h": 17.2
  },
  "luminance": 0.0665
}

Semantic roles & 50–950 ramp

primary
#8F172E
secondary
#41C1A8
accent
#EFCC39
background
#FCF6F6
surface
#F8EBEB
border
#D1C6C6
text
#130605
muted
#827A7A

Preview Lab

Preview with #8F172E

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

Preview Lab → · Contrast checker → · Palette generator →

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