#5B151B#5B151B

#5B151B is a dark, moderate red. Relative luminance 0.028; OKLCH L 31.8% C 0.101 H 20.5°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#5B151B
RGBrgb(91, 21, 27)
HSLhsl(355, 63%, 22%)
HSVhsv(355, 77%, 36%)
CMYKcmyk(0%, 76.9%, 70.3%, 64.3%)
CIE-LABlab(19.39, 32.02, 14.92)
CIE-LCHlch(19.39, 35.32, 24.99°)
OKLaboklab(31.75% 0.0947 0.0354)
OKLCHoklch(31.75% 0.101 20.5)
XYZxyz(4.7809, 2.8403, 1.3332)
Luminance0.0284 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B151B #155B55
analogous
#5B153E #5B151B #5B3215
triadic
#5B151B #1B5B15 #151B5B
tetradic
#5B151B #3E5B15 #155B55 #32155B
square
#5B151B #3E5B15 #155B55 #32155B
split-complementary
#5B151B #155B32 #153E5B
monochromatic
#190607 #290A0C #5B151B #8D202A #BE2C39

Accessibility & contrast

On white

13.39
#5B151B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#5B151B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B151B
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B151B#FFFFFF#000000##FFFFFF
##5B151B1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28261B
Deuteranopia (green-blind)
#3A3419
Tritanopia (blue-blind)
#650118
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5b151b;
/* rgb */ color: rgb(91, 21, 27);
/* oklch */ color: oklch(31.8% 0.101 20.5);
Tailwind
colors: {
  custom: {
    50: '#8f5857',
    500: '#5b151b',
    950: '#000000',
  },
}
SCSS
$custom: #5b151b;
$custom-light: #8f5857;
$custom-dark: #000000;
JSON
{
  "hex": "#5b151b",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 27
  },
  "hsl": {
    "h": 354.857,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31753,
    "c": 0.10107,
    "h": 20.5
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#5B151B
secondary
#39928B
accent
#E6D842
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5B151B

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

Preview Lab → · Contrast checker → · Palette generator →

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