#5A4A12#5A4A12

#5A4A12 is a dark, moderate yellow. Relative luminance 0.071; OKLCH L 41.4% C 0.075 H 92.4°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#5A4A12
RGBrgb(90, 74, 18)
HSLhsl(47, 67%, 21%)
HSVhsv(47, 80%, 35%)
CMYKcmyk(0%, 17.8%, 80%, 64.7%)
CIE-LABlab(32.07, 0.12, 34.00)
CIE-LCHlch(32.07, 34.00, 89.79°)
OKLaboklab(41.45% -0.0031 0.075)
OKLCHoklch(41.45% 0.075 92.4)
XYZxyz(6.7748, 7.1153, 1.5887)
Luminance0.0712 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4A12 #12225A
analogous
#5A2612 #5A4A12 #465A12
triadic
#5A4A12 #125A4A #4A125A
tetradic
#5A4A12 #125A26 #12225A #5A1246
square
#5A4A12 #125A26 #12225A #5A1246
split-complementary
#5A4A12 #12465A #26125A
monochromatic
#1A1505 #272008 #5A4A12 #8D741C #C09E26

Accessibility & contrast

On white

8.67
#5A4A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5A4A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4A12
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4A12#FFFFFF#000000##FFFFFF
##5A4A121.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534909
Deuteranopia (green-blind)
#574D15
Tritanopia (blue-blind)
#62433F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a4a12;
/* rgb */ color: rgb(90, 74, 18);
/* oklch */ color: oklch(41.4% 0.075 92.4);
Tailwind
colors: {
  custom: {
    50: '#8c7c54',
    500: '#5a4a12',
    950: '#000000',
  },
}
SCSS
$custom: #5a4a12;
$custom-light: #8c7c54;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4a12",
  "rgb": {
    "r": 90,
    "g": 74,
    "b": 18
  },
  "hsl": {
    "h": 46.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.41447,
    "c": 0.07504,
    "h": 92.4
  },
  "luminance": 0.07115
}

Semantic roles & 50–950 ramp

primary
#5A4A12
secondary
#354A93
accent
#64EA3E
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0903
muted
#7D7B78

Preview Lab

Preview with #5A4A12

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

Preview Lab → · Contrast checker → · Palette generator →

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