#5B571D#5B571D

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

Color values

HEX#5B571D
RGBrgb(91, 87, 29)
HSLhsl(56, 52%, 24%)
HSVhsv(56, 68%, 36%)
CMYKcmyk(0%, 4.4%, 68.1%, 64.3%)
CIE-LABlab(36.23, -6.52, 33.17)
CIE-LCHlch(36.23, 33.80, 101.13°)
OKLaboklab(44.8% -0.0207 0.0754)
OKLCHoklch(44.8% 0.078 105.4)
XYZxyz(7.9446, 9.1295, 2.5058)
Luminance0.0913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B571D #1D215B
analogous
#5B381D #5B571D #405B1D
triadic
#5B571D #1D5B57 #571D5B
tetradic
#5B571D #1D5B38 #1D215B #5B1D40
square
#5B571D #1D5B38 #1D215B #5B1D40
split-complementary
#5B571D #1D405B #381D5B
monochromatic
#171607 #2D2B0E #5B571D #89832C #B8B03B

Accessibility & contrast

On white

7.43
#5B571D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5B571D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B571D
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B571D#FFFFFF#000000##FFFFFF
##5B571D1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5416
Deuteranopia (green-blind)
#605620
Tritanopia (blue-blind)
#62514B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b571d;
/* rgb */ color: rgb(91, 87, 29);
/* oklch */ color: oklch(44.8% 0.078 105.4);
Tailwind
colors: {
  custom: {
    50: '#8c865c',
    500: '#5b571d',
    950: '#000000',
  },
}
SCSS
$custom: #5b571d;
$custom-light: #8c865c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b571d",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 29
  },
  "hsl": {
    "h": 56.129,
    "s": 51.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.44803,
    "c": 0.07814,
    "h": 105.4
  },
  "luminance": 0.09129
}

Semantic roles & 50–950 ramp

primary
#5B571D
secondary
#444990
accent
#56DB4D
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B04
muted
#7D7C79

Preview Lab

Preview with #5B571D

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

Preview Lab → · Contrast checker → · Palette generator →

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