#5B571A#5B571A

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

Color values

HEX#5B571A
RGBrgb(91, 87, 26)
HSLhsl(56, 56%, 23%)
HSVhsv(56, 71%, 36%)
CMYKcmyk(0%, 4.4%, 71.4%, 64.3%)
CIE-LABlab(36.21, -6.73, 34.56)
CIE-LCHlch(36.21, 35.21, 101.02°)
OKLaboklab(44.77% -0.0217 0.0778)
OKLCHoklch(44.77% 0.081 105.6)
XYZxyz(7.9093, 9.1154, 2.3199)
Luminance0.0911 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B571A #1A1E5B
analogous
#5B361A #5B571A #3E5B1A
triadic
#5B571A #1A5B57 #571A5B
tetradic
#5B571A #1A5B36 #1A1E5B #5B1A3E
square
#5B571A #1A5B36 #1A1E5B #5B1A3E
split-complementary
#5B571A #1A3E5B #361A5B
monochromatic
#181707 #2B290C #5B571A #8B8528 #BAB235

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B571A#FFFFFF#000000##FFFFFF
##5B571A1.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)
#5F5412
Deuteranopia (green-blind)
#60561E
Tritanopia (blue-blind)
#62514B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b571a;
/* rgb */ color: rgb(91, 87, 26);
/* oklch */ color: oklch(44.8% 0.081 105.6);
Tailwind
colors: {
  custom: {
    50: '#8c865a',
    500: '#5b571a',
    950: '#000000',
  },
}
SCSS
$custom: #5b571a;
$custom-light: #8c865a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b571a",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 26
  },
  "hsl": {
    "h": 56.308,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.44773,
    "c": 0.08073,
    "h": 105.6
  },
  "luminance": 0.09115
}

Semantic roles & 50–950 ramp

primary
#5B571A
secondary
#404591
accent
#52DF49
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B04
muted
#7D7C79

Preview Lab

Preview with #5B571A

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

Preview Lab → · Contrast checker → · Palette generator →

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