#5A4D0F#5A4D0F

#5A4D0F is a dark, moderate yellow. Relative luminance 0.075; OKLCH L 42.1% C 0.079 H 96.6°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5A4D0F
RGBrgb(90, 77, 15)
HSLhsl(50, 71%, 21%)
HSVhsv(50, 83%, 35%)
CMYKcmyk(0%, 14.4%, 83.3%, 64.7%)
CIE-LABlab(32.95, -1.86, 36.08)
CIE-LCHlch(32.95, 36.12, 92.95°)
OKLaboklab(42.14% -0.0091 0.0787)
OKLCHoklch(42.14% 0.079 96.6)
XYZxyz(6.9569, 7.5163, 1.5362)
Luminance0.0752 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4D0F #0F1C5A
analogous
#5A270F #5A4D0F #415A0F
triadic
#5A4D0F #0F5A4D #4D0F5A
tetradic
#5A4D0F #0F5A27 #0F1C5A #5A0F41
square
#5A4D0F #0F5A27 #0F1C5A #5A0F41
split-complementary
#5A4D0F #0F415A #270F5A
monochromatic
#1A1604 #262006 #5A4D0F #8E7A18 #C3A720

Accessibility & contrast

On white

8.39
#5A4D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5A4D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4D0F
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4D0F#FFFFFF#000000##FFFFFF
##5A4D0F1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B03
Deuteranopia (green-blind)
#594F13
Tritanopia (blue-blind)
#624641
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a4d0f;
/* rgb */ color: rgb(90, 77, 15);
/* oklch */ color: oklch(42.1% 0.079 96.6);
Tailwind
colors: {
  custom: {
    50: '#8c7e53',
    500: '#5a4d0f',
    950: '#000000',
  },
}
SCSS
$custom: #5a4d0f;
$custom-light: #8c7e53;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4d0f",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 15
  },
  "hsl": {
    "h": 49.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42142,
    "c": 0.07924,
    "h": 96.6
  },
  "luminance": 0.07516
}

Semantic roles & 50–950 ramp

primary
#5A4D0F
secondary
#314294
accent
#59EE3A
background
#F8F7F4
surface
#F0EEE7
border
#CBC9C3
text
#0C0903
muted
#7D7B78

Preview Lab

Preview with #5A4D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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