#5A4E12#5A4E12

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

Color values

HEX#5A4E12
RGBrgb(90, 78, 18)
HSLhsl(50, 67%, 21%)
HSVhsv(50, 80%, 35%)
CMYKcmyk(0%, 13.3%, 80%, 64.7%)
CIE-LABlab(33.28, -2.32, 35.17)
CIE-LCHlch(33.28, 35.24, 93.78°)
OKLaboklab(42.4% -0.0101 0.0775)
OKLCHoklch(42.4% 0.078 97.4)
XYZxyz(7.0504, 7.6665, 1.6806)
Luminance0.0767 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4E12 #121E5A
analogous
#5A2A12 #5A4E12 #425A12
triadic
#5A4E12 #125A4E #4E125A
tetradic
#5A4E12 #125A2A #121E5A #5A1242
square
#5A4E12 #125A2A #121E5A #5A1242
split-complementary
#5A4E12 #12425A #2A125A
monochromatic
#1A1605 #272208 #5A4E12 #8D7A1C #C0A626

Accessibility & contrast

On white

8.29
#5A4E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A4E12
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4E12#FFFFFF#000000##FFFFFF
##5A4E121.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a4e12;
/* rgb */ color: rgb(90, 78, 18);
/* oklch */ color: oklch(42.4% 0.078 97.4);
Tailwind
colors: {
  custom: {
    50: '#8c7f55',
    500: '#5a4e12',
    950: '#000000',
  },
}
SCSS
$custom: #5a4e12;
$custom-light: #8c7f55;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4e12",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 18
  },
  "hsl": {
    "h": 50,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42404,
    "c": 0.0781,
    "h": 97.4
  },
  "luminance": 0.07666
}

Semantic roles & 50–950 ramp

primary
#5A4E12
secondary
#354593
accent
#5BEA3E
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A4E12

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

Preview Lab → · Contrast checker → · Palette generator →

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