#5A511C#5A511C

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

Color values

HEX#5A511C
RGBrgb(90, 81, 28)
HSLhsl(51, 53%, 23%)
HSVhsv(51, 69%, 35%)
CMYKcmyk(0%, 10%, 68.9%, 64.7%)
CIE-LABlab(34.28, -3.52, 31.55)
CIE-LCHlch(34.28, 31.74, 96.36°)
OKLaboklab(43.22% -0.0122 0.0718)
OKLCHoklch(43.22% 0.073 99.6)
XYZxyz(7.3688, 8.1427, 2.2819)
Luminance0.0814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A511C #1C255A
analogous
#5A321C #5A511C #445A1C
triadic
#5A511C #1C5A51 #511C5A
tetradic
#5A511C #1C5A32 #1C255A #5A1C44
square
#5A511C #1C5A32 #1C255A #5A1C44
split-complementary
#5A511C #1C445A #321C5A
monochromatic
#171507 #2B270D #5A511C #897B2B #B7A539

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A511C#FFFFFF#000000##FFFFFF
##5A511C1.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)
#594F16
Deuteranopia (green-blind)
#5B521F
Tritanopia (blue-blind)
#614B46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a511c;
/* rgb */ color: rgb(90, 81, 28);
/* oklch */ color: oklch(43.2% 0.073 99.6);
Tailwind
colors: {
  custom: {
    50: '#8b815b',
    500: '#5a511c',
    950: '#000000',
  },
}
SCSS
$custom: #5a511c;
$custom-light: #8b815b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a511c",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 28
  },
  "hsl": {
    "h": 51.29,
    "s": 52.542,
    "l": 23.137
  },
  "oklch": {
    "l": 0.43224,
    "c": 0.07281,
    "h": 99.6
  },
  "luminance": 0.08142
}

Semantic roles & 50–950 ramp

primary
#5A511C
secondary
#424E8F
accent
#61DC4C
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A04
muted
#7D7C79

Preview Lab

Preview with #5A511C

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

Preview Lab → · Contrast checker → · Palette generator →

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