#5B511B#5B511B

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

Color values

HEX#5B511B
RGBrgb(91, 81, 27)
HSLhsl(51, 54%, 23%)
HSVhsv(51, 70%, 36%)
CMYKcmyk(0%, 11%, 70.3%, 64.3%)
CIE-LABlab(34.37, -3.09, 32.17)
CIE-LCHlch(34.37, 32.32, 95.49°)
OKLaboklab(43.32% -0.0112 0.0729)
OKLCHoklch(43.32% 0.074 98.7)
XYZxyz(7.4550, 8.1885, 2.2246)
Luminance0.0819 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B511B #1B255B
analogous
#5B311B #5B511B #455B1B
triadic
#5B511B #1B5B51 #511B5B
tetradic
#5B511B #1B5B31 #1B255B #5B1B45
square
#5B511B #1B5B31 #1B255B #5B1B45
split-complementary
#5B511B #1B455B #311B5B
monochromatic
#181507 #2C270D #5B511B #8A7B29 #B9A537

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B511B#FFFFFF#000000##FFFFFF
##5B511B1.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)
#594F14
Deuteranopia (green-blind)
#5C521E
Tritanopia (blue-blind)
#624B46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b511b;
/* rgb */ color: rgb(91, 81, 27);
/* oklch */ color: oklch(43.3% 0.074 98.7);
Tailwind
colors: {
  custom: {
    50: '#8c815a',
    500: '#5b511b',
    950: '#000000',
  },
}
SCSS
$custom: #5b511b;
$custom-light: #8c815a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b511b",
  "rgb": {
    "r": 91,
    "g": 81,
    "b": 27
  },
  "hsl": {
    "h": 50.625,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.4332,
    "c": 0.07376,
    "h": 98.7
  },
  "luminance": 0.08188
}

Semantic roles & 50–950 ramp

primary
#5B511B
secondary
#414E91
accent
#61DE4A
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A04
muted
#7D7C79

Preview Lab

Preview with #5B511B

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

Preview Lab → · Contrast checker → · Palette generator →

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