#5B231B#5B231B

#5B231B is a dark, moderate red. Relative luminance 0.035; OKLCH L 33.7% C 0.084 H 30.3°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#5B231B
RGBrgb(91, 35, 27)
HSLhsl(8, 54%, 23%)
HSVhsv(8, 70%, 36%)
CMYKcmyk(0%, 61.5%, 70.3%, 64.3%)
CIE-LABlab(21.97, 25.11, 18.12)
CIE-LCHlch(21.97, 30.96, 35.81°)
OKLaboklab(33.68% 0.0729 0.0426)
OKLCHoklch(33.68% 0.084 30.3)
XYZxyz(5.1137, 3.5060, 1.4441)
Luminance0.0350 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B231B #1B535B
analogous
#5B1B33 #5B231B #5B431B
triadic
#5B231B #1B5B23 #231B5B
tetradic
#5B231B #335B1B #1B535B #431B5B
square
#5B231B #335B1B #1B535B #431B5B
split-complementary
#5B231B #1B5B43 #1B335B
monochromatic
#180907 #2C110D #5B231B #8A3529 #B94737

Accessibility & contrast

On white

12.35
#5B231B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5B231B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B231B
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B231B#FFFFFF#000000##FFFFFF
##5B231B1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322D1A
Deuteranopia (green-blind)
#3F391A
Tritanopia (blue-blind)
#641821
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b231b;
/* rgb */ color: rgb(91, 35, 27);
/* oklch */ color: oklch(33.7% 0.084 30.3);
Tailwind
colors: {
  custom: {
    50: '#8e6057',
    500: '#5b231b',
    950: '#000000',
  },
}
SCSS
$custom: #5b231b;
$custom-light: #8e6057;
$custom-dark: #000000;
JSON
{
  "hex": "#5b231b",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 27
  },
  "hsl": {
    "h": 7.5,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33685,
    "c": 0.08441,
    "h": 30.3
  },
  "luminance": 0.03505
}

Semantic roles & 50–950 ramp

primary
#5B231B
secondary
#418791
accent
#CBDE4A
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0503
muted
#7E7978

Preview Lab

Preview with #5B231B

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

Preview Lab → · Contrast checker → · Palette generator →

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