#5B181B#5B181B

#5B181B is a dark, moderate red. Relative luminance 0.030; OKLCH L 32.1% C 0.098 H 22.1°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#5B181B
RGBrgb(91, 24, 27)
HSLhsl(357, 58%, 23%)
HSVhsv(357, 74%, 36%)
CMYKcmyk(0%, 73.6%, 70.3%, 64.3%)
CIE-LABlab(19.87, 30.70, 15.53)
CIE-LCHlch(19.87, 34.40, 26.83°)
OKLaboklab(32.11% 0.0905 0.0368)
OKLCHoklch(32.11% 0.098 22.1)
XYZxyz(4.8393, 2.9572, 1.3527)
Luminance0.0296 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B181B #185B58
analogous
#5B183D #5B181B #5B3618
triadic
#5B181B #1B5B18 #181B5B
tetradic
#5B181B #3D5B18 #185B58 #36185B
square
#5B181B #3D5B18 #185B58 #36185B
split-complementary
#5B181B #185B36 #183D5B
monochromatic
#180607 #2B0B0D #5B181B #8B2529 #BC3238

Accessibility & contrast

On white

13.20
#5B181B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5B181B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B181B
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B181B#FFFFFF#000000##FFFFFF
##5B181B1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A271B
Deuteranopia (green-blind)
#3B3519
Tritanopia (blue-blind)
#64061A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5b181b;
/* rgb */ color: rgb(91, 24, 27);
/* oklch */ color: oklch(32.1% 0.098 22.1);
Tailwind
colors: {
  custom: {
    50: '#8f5a57',
    500: '#5b181b',
    950: '#000000',
  },
}
SCSS
$custom: #5b181b;
$custom-light: #8f5a57;
$custom-dark: #000000;
JSON
{
  "hex": "#5b181b",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 27
  },
  "hsl": {
    "h": 357.313,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32111,
    "c": 0.09766,
    "h": 22.1
  },
  "luminance": 0.02957
}

Semantic roles & 50–950 ramp

primary
#5B181B
secondary
#3D928E
accent
#E1DB46
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5B181B

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

Preview Lab → · Contrast checker → · Palette generator →

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