#5F181A#5F181A

#5F181A is a dark, moderate red. Relative luminance 0.032; OKLCH L 32.9% C 0.103 H 23.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#5F181A
RGBrgb(95, 24, 26)
HSLhsl(358, 60%, 23%)
HSVhsv(358, 75%, 37%)
CMYKcmyk(0%, 74.7%, 72.6%, 62.7%)
CIE-LABlab(20.68, 32.11, 17.39)
CIE-LCHlch(20.68, 36.52, 28.44°)
OKLaboklab(32.86% 0.0942 0.0406)
OKLCHoklch(32.86% 0.103 23.3)
XYZxyz(5.2330, 3.1615, 1.3118)
Luminance0.0316 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F181A #185F5D
analogous
#5F183D #5F181A #5F3918
triadic
#5F181A #1A5F18 #181A5F
tetradic
#5F181A #3D5F18 #185F5D #39185F
square
#5F181A #3D5F18 #185F5D #39185F
split-complementary
#5F181A #185F39 #183D5F
monochromatic
#180607 #2E0C0D #5F181A #902427 #C13135

Accessibility & contrast

On white

12.87
#5F181A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5F181A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F181A
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F181A#FFFFFF#000000##FFFFFF
##5F181A1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2819
Deuteranopia (green-blind)
#3E3718
Tritanopia (blue-blind)
#690319
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f181a;
/* rgb */ color: rgb(95, 24, 26);
/* oklch */ color: oklch(32.9% 0.103 23.3);
Tailwind
colors: {
  custom: {
    50: '#925a56',
    500: '#5f181a',
    950: '#000000',
  },
}
SCSS
$custom: #5f181a;
$custom-light: #925a56;
$custom-dark: #000000;
JSON
{
  "hex": "#5f181a",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 26
  },
  "hsl": {
    "h": 358.31,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.32861,
    "c": 0.10254,
    "h": 23.3
  },
  "luminance": 0.03161
}

Semantic roles & 50–950 ramp

primary
#5F181A
secondary
#3D9593
accent
#E3DE45
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0403
muted
#7E7978

Preview Lab

Preview with #5F181A

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

Preview Lab → · Contrast checker → · Palette generator →

#5F181A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva