#5B1F0F#5B1F0F

#5B1F0F is a dark, moderate red. Relative luminance 0.032; OKLCH L 32.9% C 0.092 H 35.7°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#5B1F0F
RGBrgb(91, 31, 15)
HSLhsl(13, 72%, 21%)
HSVhsv(13, 84%, 36%)
CMYKcmyk(0%, 65.9%, 83.5%, 64.3%)
CIE-LABlab(20.98, 26.59, 24.45)
CIE-LCHlch(20.98, 36.12, 42.60°)
OKLaboklab(32.89% 0.0749 0.0539)
OKLCHoklch(32.89% 0.092 35.7)
XYZxyz(4.8911, 3.2393, 0.8195)
Luminance0.0324 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1F0F #0F4B5B
analogous
#5B0F25 #5B1F0F #5B450F
triadic
#5B1F0F #0F5B1F #1F0F5B
tetradic
#5B1F0F #255B0F #0F4B5B #450F5B
square
#5B1F0F #255B0F #0F4B5B #450F5B
split-complementary
#5B1F0F #0F5B45 #0F255B
monochromatic
#1A0904 #260D06 #5B1F0F #903118 #C44320

Accessibility & contrast

On white

12.74
#5B1F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5B1F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1F0F
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1F0F#FFFFFF#000000##FFFFFF
##5B1F0F1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A0D
Deuteranopia (green-blind)
#3F370D
Tritanopia (blue-blind)
#65101C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b1f0f;
/* rgb */ color: rgb(91, 31, 15);
/* oklch */ color: oklch(32.9% 0.092 35.7);
Tailwind
colors: {
  custom: {
    50: '#8f5d4e',
    500: '#5b1f0f',
    950: '#000000',
  },
}
SCSS
$custom: #5b1f0f;
$custom-light: #8f5d4e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1f0f",
  "rgb": {
    "r": 91,
    "g": 31,
    "b": 15
  },
  "hsl": {
    "h": 12.632,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32885,
    "c": 0.09226,
    "h": 35.7
  },
  "luminance": 0.03239
}

Semantic roles & 50–950 ramp

primary
#5B1F0F
secondary
#318095
accent
#C8EE39
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0401
muted
#7E7977

Preview Lab

Preview with #5B1F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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