#5B271F#5B271F

#5B271F is a dark, moderate red. Relative luminance 0.038; OKLCH L 34.4% C 0.078 H 30.5°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#5B271F
RGBrgb(91, 39, 31)
HSLhsl(8, 49%, 24%)
HSVhsv(8, 66%, 36%)
CMYKcmyk(0%, 57.1%, 65.9%, 64.3%)
CIE-LABlab(22.91, 23.15, 16.65)
CIE-LCHlch(22.91, 28.52, 35.73°)
OKLaboklab(34.42% 0.0676 0.0398)
OKLCHoklch(34.42% 0.078 30.5)
XYZxyz(5.2877, 3.7747, 1.7462)
Luminance0.0377 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B271F #1F535B
analogous
#5B1F35 #5B271F #5B451F
triadic
#5B271F #1F5B27 #271F5B
tetradic
#5B271F #355B1F #1F535B #451F5B
square
#5B271F #355B1F #1F535B #451F5B
split-complementary
#5B271F #1F5B45 #1F355B
monochromatic
#170A08 #2D130F #5B271F #893B2F #B64E3E

Accessibility & contrast

On white

11.97
#5B271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5B271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B271F
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B271F#FFFFFF#000000##FFFFFF
##5B271F1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34301E
Deuteranopia (green-blind)
#413B1E
Tritanopia (blue-blind)
#641E25
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b271f;
/* rgb */ color: rgb(91, 39, 31);
/* oklch */ color: oklch(34.4% 0.078 30.5);
Tailwind
colors: {
  custom: {
    50: '#8d635a',
    500: '#5b271f',
    950: '#000000',
  },
}
SCSS
$custom: #5b271f;
$custom-light: #8d635a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b271f",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 8,
    "s": 49.18,
    "l": 23.922
  },
  "oklch": {
    "l": 0.34425,
    "c": 0.07844,
    "h": 30.5
  },
  "luminance": 0.03774
}

Semantic roles & 50–950 ramp

primary
#5B271F
secondary
#468690
accent
#C6D94F
background
#F9F5F5
surface
#F1EAE9
border
#CBC6C5
text
#0D0504
muted
#7E7979

Preview Lab

Preview with #5B271F

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

Preview Lab → · Contrast checker → · Palette generator →

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