#5A4E1F#5A4E1F

#5A4E1F is a dark, moderate yellow. Relative luminance 0.077; OKLCH L 42.5% C 0.067 H 95.1°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5A4E1F
RGBrgb(90, 78, 31)
HSLhsl(48, 49%, 24%)
HSVhsv(48, 66%, 35%)
CMYKcmyk(0%, 13.3%, 65.6%, 64.7%)
CIE-LABlab(33.40, -1.47, 29.03)
CIE-LCHlch(33.40, 29.07, 92.89°)
OKLaboklab(42.54% -0.0059 0.0669)
OKLCHoklch(42.54% 0.067 95.1)
XYZxyz(7.1885, 7.7217, 2.4079)
Luminance0.0772 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E1F #1F2B5A
analogous
#5A301F #5A4E1F #485A1F
triadic
#5A4E1F #1F5A4E #4E1F5A
tetradic
#5A4E1F #1F5A30 #1F2B5A #5A1F48
square
#5A4E1F #1F5A30 #1F2B5A #5A1F48
split-complementary
#5A4E1F #1F485A #301F5A
monochromatic
#171408 #2C270F #5A4E1F #88752F #B59D3E

Accessibility & contrast

On white

8.25
#5A4E1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5A4E1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E1F
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E1F#FFFFFF#000000##FFFFFF
##5A4E1F1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C1A
Deuteranopia (green-blind)
#595021
Tritanopia (blue-blind)
#614844
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a4e1f;
/* rgb */ color: rgb(90, 78, 31);
/* oklch */ color: oklch(42.5% 0.067 95.1);
Tailwind
colors: {
  custom: {
    50: '#8b7f5d',
    500: '#5a4e1f',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e1f;
$custom-light: #8b7f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e1f",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 31
  },
  "hsl": {
    "h": 47.797,
    "s": 48.76,
    "l": 23.725
  },
  "oklch": {
    "l": 0.42536,
    "c": 0.06717,
    "h": 95.1
  },
  "luminance": 0.07721
}

Semantic roles & 50–950 ramp

primary
#5A4E1F
secondary
#46558F
accent
#6BD84F
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A04
muted
#7D7C79

Preview Lab

Preview with #5A4E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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