#5B511A#5B511A

#5B511A is a dark, moderate yellow. Relative luminance 0.082; OKLCH L 43.3% C 0.075 H 98.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5B511A
RGBrgb(91, 81, 26)
HSLhsl(51, 56%, 23%)
HSVhsv(51, 71%, 36%)
CMYKcmyk(0%, 11%, 71.4%, 64.3%)
CIE-LABlab(34.36, -3.16, 32.65)
CIE-LCHlch(34.36, 32.80, 95.53°)
OKLaboklab(43.31% -0.0115 0.0737)
OKLCHoklch(43.31% 0.075 98.9)
XYZxyz(7.4436, 8.1839, 2.1647)
Luminance0.0818 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B511A #1A245B
analogous
#5B301A #5B511A #445B1A
triadic
#5B511A #1A5B51 #511A5B
tetradic
#5B511A #1A5B30 #1A245B #5B1A44
square
#5B511A #1A5B30 #1A245B #5B1A44
split-complementary
#5B511A #1A445B #301A5B
monochromatic
#181507 #2B270C #5B511A #8B7B28 #BAA635

Accessibility & contrast

On white

7.96
#5B511A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5B511A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B511A
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B511A#FFFFFF#000000##FFFFFF
##5B511A1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F13
Deuteranopia (green-blind)
#5C521D
Tritanopia (blue-blind)
#624B46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b511a;
/* rgb */ color: rgb(91, 81, 26);
/* oklch */ color: oklch(43.3% 0.075 98.9);
Tailwind
colors: {
  custom: {
    50: '#8c815a',
    500: '#5b511a',
    950: '#000000',
  },
}
SCSS
$custom: #5b511a;
$custom-light: #8c815a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b511a",
  "rgb": {
    "r": 91,
    "g": 81,
    "b": 26
  },
  "hsl": {
    "h": 50.769,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.4331,
    "c": 0.07463,
    "h": 98.9
  },
  "luminance": 0.08184
}

Semantic roles & 50–950 ramp

primary
#5B511A
secondary
#404C91
accent
#60DF49
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A04
muted
#7D7C79

Preview Lab

Preview with #5B511A

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

Preview Lab → · Contrast checker → · Palette generator →

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