#5A4812#5A4812

#5A4812 is a dark, moderate yellow. Relative luminance 0.069; OKLCH L 41.0% C 0.074 H 89.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5A4812
RGBrgb(90, 72, 18)
HSLhsl(45, 67%, 21%)
HSVhsv(45, 80%, 35%)
CMYKcmyk(0%, 20%, 80%, 64.7%)
CIE-LABlab(31.47, 1.36, 33.42)
CIE-LCHlch(31.47, 33.45, 87.68°)
OKLaboklab(40.98% 0.0004 0.0738)
OKLCHoklch(40.98% 0.074 89.7)
XYZxyz(6.6434, 6.8525, 1.5449)
Luminance0.0685 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4812 #12245A
analogous
#5A2412 #5A4812 #485A12
triadic
#5A4812 #125A48 #48125A
tetradic
#5A4812 #125A24 #12245A #5A1248
square
#5A4812 #125A24 #12245A #5A1248
split-complementary
#5A4812 #12485A #24125A
monochromatic
#1A1405 #271F08 #5A4812 #8D711C #C09A26

Accessibility & contrast

On white

8.86
#5A4812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5A4812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4812
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4812#FFFFFF#000000##FFFFFF
##5A48121.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514709
Deuteranopia (green-blind)
#564C15
Tritanopia (blue-blind)
#62413D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a4812;
/* rgb */ color: rgb(90, 72, 18);
/* oklch */ color: oklch(41.0% 0.074 89.7);
Tailwind
colors: {
  custom: {
    50: '#8c7a54',
    500: '#5a4812',
    950: '#000000',
  },
}
SCSS
$custom: #5a4812;
$custom-light: #8c7a54;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4812",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 45,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.40975,
    "c": 0.07375,
    "h": 89.7
  },
  "luminance": 0.06852
}

Semantic roles & 50–950 ramp

primary
#5A4812
secondary
#354D93
accent
#69EA3E
background
#F8F7F5
surface
#F0EDE8
border
#CBC8C4
text
#0C0903
muted
#7D7B78

Preview Lab

Preview with #5A4812

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

Preview Lab → · Contrast checker → · Palette generator →

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