#5A511D#5A511D

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

Color values

HEX#5A511D
RGBrgb(90, 81, 29)
HSLhsl(51, 51%, 23%)
HSVhsv(51, 68%, 35%)
CMYKcmyk(0%, 10%, 67.8%, 64.7%)
CIE-LABlab(34.29, -3.44, 31.05)
CIE-LCHlch(34.29, 31.24, 96.32°)
OKLaboklab(43.24% -0.0119 0.0709)
OKLCHoklch(43.24% 0.072 99.5)
XYZxyz(7.3810, 8.1475, 2.3460)
Luminance0.0815 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A511D #1D265A
analogous
#5A321D #5A511D #445A1D
triadic
#5A511D #1D5A51 #511D5A
tetradic
#5A511D #1D5A32 #1D265A #5A1D44
square
#5A511D #1D5A32 #1D265A #5A1D44
split-complementary
#5A511D #1D445A #321D5A
monochromatic
#171507 #2C270E #5A511D #887B2C #B7A43B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A511D#FFFFFF#000000##FFFFFF
##5A511D1.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)
#594F17
Deuteranopia (green-blind)
#5B5220
Tritanopia (blue-blind)
#614B46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a511d;
/* rgb */ color: rgb(90, 81, 29);
/* oklch */ color: oklch(43.2% 0.072 99.5);
Tailwind
colors: {
  custom: {
    50: '#8b815c',
    500: '#5a511d',
    950: '#000000',
  },
}
SCSS
$custom: #5a511d;
$custom-light: #8b815c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a511d",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 29
  },
  "hsl": {
    "h": 51.148,
    "s": 51.261,
    "l": 23.333
  },
  "oklch": {
    "l": 0.43235,
    "c": 0.07189,
    "h": 99.5
  },
  "luminance": 0.08147
}

Semantic roles & 50–950 ramp

primary
#5A511D
secondary
#444F8F
accent
#62DB4D
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A04
muted
#7D7C79

Preview Lab

Preview with #5A511D

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

Preview Lab → · Contrast checker → · Palette generator →

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