#5B271C#5B271C

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

Color values

HEX#5B271C
RGBrgb(91, 39, 28)
HSLhsl(10, 53%, 23%)
HSVhsv(10, 69%, 36%)
CMYKcmyk(0%, 57.1%, 69.2%, 64.3%)
CIE-LABlab(22.86, 22.92, 18.55)
CIE-LCHlch(22.86, 29.49, 39.00°)
OKLaboklab(34.37% 0.0663 0.0437)
OKLCHoklch(34.37% 0.079 33.4)
XYZxyz(5.2500, 3.7597, 1.5476)
Luminance0.0376 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B271C #1C505B
analogous
#5B1C30 #5B271C #5B461C
triadic
#5B271C #1C5B27 #271C5B
tetradic
#5B271C #305B1C #1C505B #461C5B
square
#5B271C #305B1C #1C505B #461C5B
split-complementary
#5B271C #1C5B46 #1C305B
monochromatic
#170A07 #2C130E #5B271C #8A3B2A #B94F39

Accessibility & contrast

On white

11.99
#5B271C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B271C
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B271C#FFFFFF#000000##FFFFFF
##5B271C1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34301B
Deuteranopia (green-blind)
#413B1B
Tritanopia (blue-blind)
#641D24
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b271c;
/* rgb */ color: rgb(91, 39, 28);
/* oklch */ color: oklch(34.4% 0.079 33.4);
Tailwind
colors: {
  custom: {
    50: '#8e6358',
    500: '#5b271c',
    950: '#000000',
  },
}
SCSS
$custom: #5b271c;
$custom-light: #8e6358;
$custom-dark: #000000;
JSON
{
  "hex": "#5b271c",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 10.476,
    "s": 52.941,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34369,
    "c": 0.07938,
    "h": 33.4
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#5B271C
secondary
#428390
accent
#C3DC4B
background
#F9F5F5
surface
#F1EAE9
border
#CBC6C5
text
#0D0503
muted
#7E7978

Preview Lab

Preview with #5B271C

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

Preview Lab → · Contrast checker → · Palette generator →

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