#5A4810#5A4810

#5A4810 is a dark, moderate yellow. Relative luminance 0.068; OKLCH L 41.0% C 0.075 H 90.1°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5A4810
RGBrgb(90, 72, 16)
HSLhsl(45, 70%, 21%)
HSVhsv(45, 82%, 35%)
CMYKcmyk(0%, 20%, 82.2%, 64.7%)
CIE-LABlab(31.45, 1.26, 34.28)
CIE-LCHlch(31.45, 34.30, 87.90°)
OKLaboklab(40.96% -0.0001 0.0751)
OKLCHoklch(40.96% 0.075 90.1)
XYZxyz(6.6277, 6.8462, 1.4625)
Luminance0.0685 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4810 #10225A
analogous
#5A2310 #5A4810 #475A10
triadic
#5A4810 #105A48 #48105A
tetradic
#5A4810 #105A23 #10225A #5A1047
square
#5A4810 #105A23 #10225A #5A1047
split-complementary
#5A4810 #10475A #23105A
monochromatic
#1A1505 #261E07 #5A4810 #8E7219 #C29B22

Accessibility & contrast

On white

8.86
#5A4810 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5A4810 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4810
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4810#FFFFFF#000000##FFFFFF
##5A48101.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514706
Deuteranopia (green-blind)
#564C13
Tritanopia (blue-blind)
#62413D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a4810;
/* rgb */ color: rgb(90, 72, 16);
/* oklch */ color: oklch(41.0% 0.075 90.1);
Tailwind
colors: {
  custom: {
    50: '#8c7a53',
    500: '#5a4810',
    950: '#000000',
  },
}
SCSS
$custom: #5a4810;
$custom-light: #8c7a53;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4810",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 16
  },
  "hsl": {
    "h": 45.405,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40959,
    "c": 0.0751,
    "h": 90.1
  },
  "luminance": 0.06846
}

Semantic roles & 50–950 ramp

primary
#5A4810
secondary
#334A93
accent
#66ED3B
background
#F8F7F4
surface
#F0EDE7
border
#CBC8C3
text
#0C0903
muted
#7D7B78

Preview Lab

Preview with #5A4810

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

Preview Lab → · Contrast checker → · Palette generator →

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