#5A4E15#5A4E15

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

Color values

HEX#5A4E15
RGBrgb(90, 78, 21)
HSLhsl(50, 62%, 22%)
HSVhsv(50, 77%, 35%)
CMYKcmyk(0%, 13.3%, 76.7%, 64.7%)
CIE-LABlab(33.30, -2.16, 33.88)
CIE-LCHlch(33.30, 33.95, 93.65°)
OKLaboklab(42.43% -0.0092 0.0754)
OKLCHoklch(42.43% 0.076 97)
XYZxyz(7.0765, 7.6769, 1.8184)
Luminance0.0768 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E15 #15215A
analogous
#5A2C15 #5A4E15 #445A15
triadic
#5A4E15 #155A4E #4E155A
tetradic
#5A4E15 #155A2C #15215A #5A1544
square
#5A4E15 #155A2C #15215A #5A1544
split-complementary
#5A4E15 #15445A #2C155A
monochromatic
#191606 #282309 #5A4E15 #8C7921 #BDA42C

Accessibility & contrast

On white

8.28
#5A4E15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A4E15
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E15#FFFFFF#000000##FFFFFF
##5A4E151.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C0C
Deuteranopia (green-blind)
#5A5018
Tritanopia (blue-blind)
#624843
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a4e15;
/* rgb */ color: rgb(90, 78, 21);
/* oklch */ color: oklch(42.4% 0.076 97.0);
Tailwind
colors: {
  custom: {
    50: '#8b7f56',
    500: '#5a4e15',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e15;
$custom-light: #8b7f56;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e15",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 21
  },
  "hsl": {
    "h": 49.565,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42429,
    "c": 0.07594,
    "h": 97
  },
  "luminance": 0.07677
}

Semantic roles & 50–950 ramp

primary
#5A4E15
secondary
#394992
accent
#5FE543
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A4E15

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

Preview Lab → · Contrast checker → · Palette generator →

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