#5A4E2A#5A4E2A

#5A4E2A is a dark, muted yellow. Relative luminance 0.078; OKLCH L 42.7% C 0.055 H 91.5°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#5A4E2A
RGBrgb(90, 78, 42)
HSLhsl(45, 36%, 26%)
HSVhsv(45, 53%, 35%)
CMYKcmyk(0%, 13.3%, 53.3%, 64.7%)
CIE-LABlab(33.54, -0.43, 23.02)
CIE-LCHlch(33.54, 23.03, 91.08°)
OKLaboklab(42.7% -0.0014 0.0551)
OKLCHoklch(42.7% 0.055 91.5)
XYZxyz(7.3590, 7.7899, 3.3060)
Luminance0.0779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E2A #2A365A
analogous
#5A362A #5A4E2A #4E5A2A
triadic
#5A4E2A #2A5A4E #4E2A5A
tetradic
#5A4E2A #2A5A36 #2A365A #5A2A4E
square
#5A4E2A #2A5A36 #2A365A #5A2A4E
split-complementary
#5A4E2A #2A4E5A #362A5A
monochromatic
#15120A #302A17 #5A4E2A #84723D #AD9651

Accessibility & contrast

On white

8.21
#5A4E2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5A4E2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E2A
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E2A#FFFFFF#000000##FFFFFF
##5A4E2A1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554D27
Deuteranopia (green-blind)
#58502B
Tritanopia (blue-blind)
#614945
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a4e2a;
/* rgb */ color: rgb(90, 78, 42);
/* oklch */ color: oklch(42.7% 0.055 91.5);
Tailwind
colors: {
  custom: {
    50: '#8a7f64',
    500: '#5a4e2a',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e2a;
$custom-light: #8a7f64;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e2a",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 42
  },
  "hsl": {
    "h": 45,
    "s": 36.364,
    "l": 25.882
  },
  "oklch": {
    "l": 0.42697,
    "c": 0.05516,
    "h": 91.5
  },
  "luminance": 0.0779
}

Semantic roles & 50–950 ramp

primary
#5A4E2A
secondary
#53628C
accent
#78CC5B
background
#F8F7F6
surface
#F0EEEB
border
#CBC9C6
text
#0C0A05
muted
#7D7C7A

Preview Lab

Preview with #5A4E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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