#5B571B#5B571B

#5B571B is a dark, moderate yellow. Relative luminance 0.091; OKLCH L 44.8% C 0.080 H 105.5°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#5B571B
RGBrgb(91, 87, 27)
HSLhsl(56, 54%, 23%)
HSVhsv(56, 70%, 36%)
CMYKcmyk(0%, 4.4%, 70.3%, 64.3%)
CIE-LABlab(36.21, -6.66, 34.11)
CIE-LCHlch(36.21, 34.75, 101.06°)
OKLaboklab(44.78% -0.0214 0.077)
OKLCHoklch(44.78% 0.08 105.5)
XYZxyz(7.9207, 9.1199, 2.3798)
Luminance0.0912 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B571B #1B1F5B
analogous
#5B371B #5B571B #3F5B1B
triadic
#5B571B #1B5B57 #571B5B
tetradic
#5B571B #1B5B37 #1B1F5B #5B1B3F
square
#5B571B #1B5B37 #1B1F5B #5B1B3F
split-complementary
#5B571B #1B3F5B #371B5B
monochromatic
#181707 #2C2A0D #5B571B #8A8429 #B9B137

Accessibility & contrast

On white

7.44
#5B571B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5B571B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B571B
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B571B#FFFFFF#000000##FFFFFF
##5B571B1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5413
Deuteranopia (green-blind)
#60561F
Tritanopia (blue-blind)
#62514B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b571b;
/* rgb */ color: rgb(91, 87, 27);
/* oklch */ color: oklch(44.8% 0.080 105.5);
Tailwind
colors: {
  custom: {
    50: '#8c865b',
    500: '#5b571b',
    950: '#000000',
  },
}
SCSS
$custom: #5b571b;
$custom-light: #8c865b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b571b",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 56.25,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.44783,
    "c": 0.07989,
    "h": 105.5
  },
  "luminance": 0.0912
}

Semantic roles & 50–950 ramp

primary
#5B571B
secondary
#414691
accent
#53DE4A
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B04
muted
#7D7C79

Preview Lab

Preview with #5B571B

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

Preview Lab → · Contrast checker → · Palette generator →

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