#5F181F#5F181F

#5F181F is a dark, moderate red. Relative luminance 0.032; OKLCH L 33.0% C 0.102 H 19.4°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#5F181F
RGBrgb(95, 24, 31)
HSLhsl(354, 60%, 23%)
HSVhsv(354, 75%, 37%)
CMYKcmyk(0%, 74.7%, 67.4%, 62.7%)
CIE-LABlab(20.77, 32.44, 14.09)
CIE-LCHlch(20.77, 35.37, 23.47°)
OKLaboklab(32.96% 0.0963 0.0339)
OKLCHoklch(32.96% 0.102 19.4)
XYZxyz(5.2938, 3.1858, 1.6322)
Luminance0.0319 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F181F #185F58
analogous
#5F1842 #5F181F #5F3418
triadic
#5F181F #1F5F18 #181F5F
tetradic
#5F181F #425F18 #185F58 #34185F
square
#5F181F #425F18 #185F58 #34185F
split-complementary
#5F181F #185F34 #18425F
monochromatic
#180608 #2E0C0F #5F181F #90242F #C1313F

Accessibility & contrast

On white

12.83
#5F181F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5F181F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F181F
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F181F#FFFFFF#000000##FFFFFF
##5F181F1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B281F
Deuteranopia (green-blind)
#3D371D
Tritanopia (blue-blind)
#69051B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5f181f;
/* rgb */ color: rgb(95, 24, 31);
/* oklch */ color: oklch(33.0% 0.102 19.4);
Tailwind
colors: {
  custom: {
    50: '#925a5a',
    500: '#5f181f',
    950: '#000000',
  },
}
SCSS
$custom: #5f181f;
$custom-light: #925a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f181f",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 31
  },
  "hsl": {
    "h": 354.085,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.32961,
    "c": 0.10212,
    "h": 19.4
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#5F181F
secondary
#3D958D
accent
#E3D345
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0E0403
muted
#7E7978

Preview Lab

Preview with #5F181F

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

Preview Lab → · Contrast checker → · Palette generator →

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