#5A511B#5A511B

#5A511B is a dark, moderate yellow. Relative luminance 0.081; OKLCH L 43.2% C 0.074 H 99.8°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5A511B
RGBrgb(90, 81, 27)
HSLhsl(51, 54%, 23%)
HSVhsv(51, 70%, 35%)
CMYKcmyk(0%, 10%, 70%, 64.7%)
CIE-LABlab(34.27, -3.59, 32.03)
CIE-LCHlch(34.27, 32.23, 96.39°)
OKLaboklab(43.21% -0.0125 0.0726)
OKLCHoklch(43.21% 0.074 99.8)
XYZxyz(7.3570, 8.1380, 2.2200)
Luminance0.0814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A511B #1B245A
analogous
#5A321B #5A511B #435A1B
triadic
#5A511B #1B5A51 #511B5A
tetradic
#5A511B #1B5A32 #1B245A #5A1B43
square
#5A511B #1B5A32 #1B245A #5A1B43
split-complementary
#5A511B #1B435A #321B5A
monochromatic
#181507 #2B270D #5A511B #897B29 #B8A637

Accessibility & contrast

On white

7.99
#5A511B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5A511B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A511B
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A511B#FFFFFF#000000##FFFFFF
##5A511B1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F14
Deuteranopia (green-blind)
#5C521E
Tritanopia (blue-blind)
#614B46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a511b;
/* rgb */ color: rgb(90, 81, 27);
/* oklch */ color: oklch(43.2% 0.074 99.8);
Tailwind
colors: {
  custom: {
    50: '#8b815a',
    500: '#5a511b',
    950: '#000000',
  },
}
SCSS
$custom: #5a511b;
$custom-light: #8b815a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a511b",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 27
  },
  "hsl": {
    "h": 51.429,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.43213,
    "c": 0.0737,
    "h": 99.8
  },
  "luminance": 0.08138
}

Semantic roles & 50–950 ramp

primary
#5A511B
secondary
#414C90
accent
#60DD4B
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A04
muted
#7D7C79

Preview Lab

Preview with #5A511B

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

Preview Lab → · Contrast checker → · Palette generator →

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