#5B511D#5B511D

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

Color values

HEX#5B511D
RGBrgb(91, 81, 29)
HSLhsl(50, 52%, 24%)
HSVhsv(50, 68%, 36%)
CMYKcmyk(0%, 11%, 68.1%, 64.3%)
CIE-LABlab(34.39, -2.95, 31.19)
CIE-LCHlch(34.39, 31.33, 95.40°)
OKLaboklab(43.34% -0.0105 0.0712)
OKLCHoklch(43.34% 0.072 98.4)
XYZxyz(7.4789, 8.1981, 2.3506)
Luminance0.0820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B511D #1D275B
analogous
#5B321D #5B511D #465B1D
triadic
#5B511D #1D5B51 #511D5B
tetradic
#5B511D #1D5B32 #1D275B #5B1D46
square
#5B511D #1D5B32 #1D275B #5B1D46
split-complementary
#5B511D #1D465B #321D5B
monochromatic
#171507 #2D280E #5B511D #897A2C #B8A43B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B511D#FFFFFF#000000##FFFFFF
##5B511D1.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)
#594F17
Deuteranopia (green-blind)
#5C5220
Tritanopia (blue-blind)
#624B46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b511d;
/* rgb */ color: rgb(91, 81, 29);
/* oklch */ color: oklch(43.3% 0.072 98.4);
Tailwind
colors: {
  custom: {
    50: '#8c815c',
    500: '#5b511d',
    950: '#000000',
  },
}
SCSS
$custom: #5b511d;
$custom-light: #8c815c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b511d",
  "rgb": {
    "r": 91,
    "g": 81,
    "b": 29
  },
  "hsl": {
    "h": 50.323,
    "s": 51.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.43342,
    "c": 0.07194,
    "h": 98.4
  },
  "luminance": 0.08198
}

Semantic roles & 50–950 ramp

primary
#5B511D
secondary
#445090
accent
#64DB4D
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A04
muted
#7D7C79

Preview Lab

Preview with #5B511D

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

Preview Lab → · Contrast checker → · Palette generator →

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