#5B151F#5B151F

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

Color values

HEX#5B151F
RGBrgb(91, 21, 31)
HSLhsl(351, 63%, 22%)
HSVhsv(351, 77%, 36%)
CMYKcmyk(0%, 76.9%, 65.9%, 64.3%)
CIE-LABlab(19.47, 32.30, 12.24)
CIE-LCHlch(19.47, 34.54, 20.76°)
OKLaboklab(31.84% 0.0964 0.0297)
OKLCHoklch(31.84% 0.101 17.1)
XYZxyz(4.8304, 2.8601, 1.5938)
Luminance0.0286 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B151F #155B51
analogous
#5B1542 #5B151F #5B2E15
triadic
#5B151F #1F5B15 #151F5B
tetradic
#5B151F #425B15 #155B51 #2E155B
square
#5B151F #425B15 #155B51 #2E155B
split-complementary
#5B151F #155B2E #15425B
monochromatic
#190608 #290A0E #5B151F #8D2030 #BE2C41

Accessibility & contrast

On white

13.36
#5B151F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B151F
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B151F#FFFFFF#000000##FFFFFF
##5B151F1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28261F
Deuteranopia (green-blind)
#3A351D
Tritanopia (blue-blind)
#640319
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5b151f;
/* rgb */ color: rgb(91, 21, 31);
/* oklch */ color: oklch(31.8% 0.101 17.1);
Tailwind
colors: {
  custom: {
    50: '#8f585a',
    500: '#5b151f',
    950: '#000000',
  },
}
SCSS
$custom: #5b151f;
$custom-light: #8f585a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b151f",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 31
  },
  "hsl": {
    "h": 351.429,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31841,
    "c": 0.10092,
    "h": 17.1
  },
  "luminance": 0.02859
}

Semantic roles & 50–950 ramp

primary
#5B151F
secondary
#399286
accent
#E6CE42
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0403
muted
#7E7978

Preview Lab

Preview with #5B151F

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

Preview Lab → · Contrast checker → · Palette generator →

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