#5B181F#5B181F

#5B181F is a dark, moderate red. Relative luminance 0.030; OKLCH L 32.2% C 0.097 H 18.7°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#5B181F
RGBrgb(91, 24, 31)
HSLhsl(354, 58%, 23%)
HSVhsv(354, 74%, 36%)
CMYKcmyk(0%, 73.6%, 65.9%, 64.3%)
CIE-LABlab(19.95, 30.98, 12.86)
CIE-LCHlch(19.95, 33.55, 22.55°)
OKLaboklab(32.2% 0.0923 0.0312)
OKLCHoklch(32.2% 0.097 18.7)
XYZxyz(4.8888, 2.9770, 1.6132)
Luminance0.0298 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B181F #185B54
analogous
#5B1841 #5B181F #5B3218
triadic
#5B181F #1F5B18 #181F5B
tetradic
#5B181F #415B18 #185B54 #32185B
square
#5B181F #415B18 #185B54 #32185B
split-complementary
#5B181F #185B32 #18415B
monochromatic
#180608 #2B0B0F #5B181F #8B252F #BC3240

Accessibility & contrast

On white

13.16
#5B181F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5B181F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B181F
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B181F#FFFFFF#000000##FFFFFF
##5B181F1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A271F
Deuteranopia (green-blind)
#3B351D
Tritanopia (blue-blind)
#64081B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b181f;
/* rgb */ color: rgb(91, 24, 31);
/* oklch */ color: oklch(32.2% 0.097 18.7);
Tailwind
colors: {
  custom: {
    50: '#8e5a5a',
    500: '#5b181f',
    950: '#000000',
  },
}
SCSS
$custom: #5b181f;
$custom-light: #8e5a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b181f",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 31
  },
  "hsl": {
    "h": 353.731,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32196,
    "c": 0.09738,
    "h": 18.7
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#5B181F
secondary
#3D9289
accent
#E1D146
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5B181F

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

Preview Lab → · Contrast checker → · Palette generator →

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