#5A4D12#5A4D12

#5A4D12 is a dark, moderate yellow. Relative luminance 0.075; OKLCH L 42.2% C 0.077 H 96.2°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5A4D12
RGBrgb(90, 77, 18)
HSLhsl(49, 67%, 21%)
HSVhsv(49, 80%, 35%)
CMYKcmyk(0%, 14.4%, 80%, 64.7%)
CIE-LABlab(32.97, -1.71, 34.88)
CIE-LCHlch(32.97, 34.92, 92.81°)
OKLaboklab(42.16% -0.0083 0.0768)
OKLCHoklch(42.16% 0.077 96.2)
XYZxyz(6.9799, 7.5255, 1.6571)
Luminance0.0752 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4D12 #121F5A
analogous
#5A2912 #5A4D12 #435A12
triadic
#5A4D12 #125A4D #4D125A
tetradic
#5A4D12 #125A29 #121F5A #5A1243
square
#5A4D12 #125A29 #121F5A #5A1243
split-complementary
#5A4D12 #12435A #29125A
monochromatic
#1A1605 #272108 #5A4D12 #8D791C #C0A426

Accessibility & contrast

On white

8.38
#5A4D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5A4D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4D12
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4D12#FFFFFF#000000##FFFFFF
##5A4D121.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B08
Deuteranopia (green-blind)
#594F16
Tritanopia (blue-blind)
#624641
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a4d12;
/* rgb */ color: rgb(90, 77, 18);
/* oklch */ color: oklch(42.2% 0.077 96.2);
Tailwind
colors: {
  custom: {
    50: '#8c7e55',
    500: '#5a4d12',
    950: '#000000',
  },
}
SCSS
$custom: #5a4d12;
$custom-light: #8c7e55;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4d12",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 18
  },
  "hsl": {
    "h": 49.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42164,
    "c": 0.07729,
    "h": 96.2
  },
  "luminance": 0.07525
}

Semantic roles & 50–950 ramp

primary
#5A4D12
secondary
#354693
accent
#5DEA3E
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0903
muted
#7D7B78

Preview Lab

Preview with #5A4D12

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

Preview Lab → · Contrast checker → · Palette generator →

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