#5A4E0F#5A4E0F

#5A4E0F is a dark, moderate yellow. Relative luminance 0.077; OKLCH L 42.4% C 0.080 H 97.8°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#5A4E0F
RGBrgb(90, 78, 15)
HSLhsl(50, 71%, 21%)
HSVhsv(50, 83%, 35%)
CMYKcmyk(0%, 13.3%, 83.3%, 64.7%)
CIE-LABlab(33.26, -2.47, 36.36)
CIE-LCHlch(33.26, 36.44, 93.88°)
OKLaboklab(42.38% -0.0108 0.0793)
OKLCHoklch(42.38% 0.08 97.8)
XYZxyz(7.0274, 7.6573, 1.5597)
Luminance0.0766 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E0F #0F1B5A
analogous
#5A280F #5A4E0F #405A0F
triadic
#5A4E0F #0F5A4E #4E0F5A
tetradic
#5A4E0F #0F5A28 #0F1B5A #5A0F40
square
#5A4E0F #0F5A28 #0F1B5A #5A0F40
split-complementary
#5A4E0F #0F405A #280F5A
monochromatic
#1A1704 #262106 #5A4E0F #8E7B18 #C3A920

Accessibility & contrast

On white

8.30
#5A4E0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5A4E0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4E0F
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E0F#FFFFFF#000000##FFFFFF
##5A4E0F1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C03
Deuteranopia (green-blind)
#5A5013
Tritanopia (blue-blind)
#624742
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a4e0f;
/* rgb */ color: rgb(90, 78, 15);
/* oklch */ color: oklch(42.4% 0.080 97.8);
Tailwind
colors: {
  custom: {
    50: '#8c7f53',
    500: '#5a4e0f',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e0f;
$custom-light: #8c7f53;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e0f",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 15
  },
  "hsl": {
    "h": 50.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42383,
    "c": 0.08005,
    "h": 97.8
  },
  "luminance": 0.07657
}

Semantic roles & 50–950 ramp

primary
#5A4E0F
secondary
#314194
accent
#57EE3A
background
#F8F7F4
surface
#F0EEE8
border
#CBC9C4
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A4E0F

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

Preview Lab → · Contrast checker → · Palette generator →

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