#5A4E1B#5A4E1B

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

Color values

HEX#5A4E1B
RGBrgb(90, 78, 27)
HSLhsl(49, 54%, 23%)
HSVhsv(49, 70%, 35%)
CMYKcmyk(0%, 13.3%, 70%, 64.7%)
CIE-LABlab(33.35, -1.77, 31.06)
CIE-LCHlch(33.35, 31.11, 93.27°)
OKLaboklab(42.49% -0.0073 0.0706)
OKLCHoklch(42.49% 0.071 95.9)
XYZxyz(7.1390, 7.7019, 2.1473)
Luminance0.0770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E1B #1B275A
analogous
#5A2E1B #5A4E1B #465A1B
triadic
#5A4E1B #1B5A4E #4E1B5A
tetradic
#5A4E1B #1B5A2E #1B275A #5A1B46
square
#5A4E1B #1B5A2E #1B275A #5A1B46
split-complementary
#5A4E1B #1B465A #2E1B5A
monochromatic
#181407 #2B250D #5A4E1B #897729 #B8A037

Accessibility & contrast

On white

8.27
#5A4E1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A4E1B
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E1B#FFFFFF#000000##FFFFFF
##5A4E1B1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C15
Deuteranopia (green-blind)
#59501E
Tritanopia (blue-blind)
#614843
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a4e1b;
/* rgb */ color: rgb(90, 78, 27);
/* oklch */ color: oklch(42.5% 0.071 95.9);
Tailwind
colors: {
  custom: {
    50: '#8b7f5a',
    500: '#5a4e1b',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e1b;
$custom-light: #8b7f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e1b",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 27
  },
  "hsl": {
    "h": 48.571,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.42489,
    "c": 0.07095,
    "h": 95.9
  },
  "luminance": 0.07702
}

Semantic roles & 50–950 ramp

primary
#5A4E1B
secondary
#415090
accent
#67DD4B
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A04
muted
#7D7C79

Preview Lab

Preview with #5A4E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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