#8F172D#8F172D

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

Color values

HEX#8F172D
RGBrgb(143, 23, 45)
HSLhsl(349, 72%, 33%)
HSVhsv(349, 84%, 56%)
CMYKcmyk(0%, 83.9%, 68.5%, 43.9%)
CIE-LABlab(30.98, 49.08, 19.76)
CIE-LCHlch(30.98, 52.91, 21.93°)
OKLaboklab(42.42% 0.1458 0.0467)
OKLCHoklch(42.42% 0.153 17.8)
XYZxyz(12.1091, 6.6438, 3.1269)
Luminance0.0664 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F172D #178F79
analogous
#8F1769 #8F172D #8F3D17
triadic
#8F172D #2D8F17 #172D8F
tetradic
#8F172D #698F17 #178F79 #3D178F
square
#8F172D #698F17 #178F79 #3D178F
split-complementary
#8F172D #178F3D #17698F
monochromatic
#26060C #5A0F1C #8F172D #C41F3E #E0405D

Accessibility & contrast

On white

9.02
#8F172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F172D
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F172D#FFFFFF#000000##FFFFFF
##8F172D1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C392D
Deuteranopia (green-blind)
#5A5229
Tritanopia (blue-blind)
#9D0021
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #8f172d;
/* rgb */ color: rgb(143, 23, 45);
/* oklch */ color: oklch(42.4% 0.153 17.8);
Tailwind
colors: {
  custom: {
    50: '#b76265',
    500: '#8f172d',
    950: '#000000',
  },
}
SCSS
$custom: #8f172d;
$custom-light: #b76265;
$custom-dark: #000000;
JSON
{
  "hex": "#8f172d",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 349,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42424,
    "c": 0.15312,
    "h": 17.8
  },
  "luminance": 0.06642
}

Semantic roles & 50–950 ramp

primary
#8F172D
secondary
#41C1A9
accent
#EFCE39
background
#FCF6F6
surface
#F8EBEB
border
#D1C6C6
text
#130605
muted
#827A7A

Preview Lab

Preview with #8F172D

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

Preview Lab → · Contrast checker → · Palette generator →

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