#5A5016#5A5016

#5A5016 is a dark, moderate yellow. Relative luminance 0.080; OKLCH L 42.9% C 0.077 H 99.3°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#5A5016
RGBrgb(90, 80, 22)
HSLhsl(51, 61%, 22%)
HSVhsv(51, 76%, 35%)
CMYKcmyk(0%, 11.1%, 75.6%, 64.7%)
CIE-LABlab(33.92, -3.31, 34.04)
CIE-LCHlch(33.92, 34.20, 95.55°)
OKLaboklab(42.92% -0.0124 0.0759)
OKLCHoklch(42.92% 0.077 99.3)
XYZxyz(7.2303, 7.9693, 1.9163)
Luminance0.0797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5016 #16205A
analogous
#5A2E16 #5A5016 #425A16
triadic
#5A5016 #165A50 #50165A
tetradic
#5A5016 #165A2E #16205A #5A1642
square
#5A5016 #165A2E #16205A #5A1642
split-complementary
#5A5016 #16425A #2E165A
monochromatic
#191606 #29240A #5A5016 #8B7C22 #BCA72E

Accessibility & contrast

On white

8.10
#5A5016 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5A5016 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5016
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5016#FFFFFF#000000##FFFFFF
##5A50161.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E0D
Deuteranopia (green-blind)
#5B5119
Tritanopia (blue-blind)
#614A44
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a5016;
/* rgb */ color: rgb(90, 80, 22);
/* oklch */ color: oklch(42.9% 0.077 99.3);
Tailwind
colors: {
  custom: {
    50: '#8b8057',
    500: '#5a5016',
    950: '#000000',
  },
}
SCSS
$custom: #5a5016;
$custom-light: #8b8057;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5016",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 22
  },
  "hsl": {
    "h": 51.176,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.42922,
    "c": 0.07694,
    "h": 99.3
  },
  "luminance": 0.07969
}

Semantic roles & 50–950 ramp

primary
#5A5016
secondary
#3B4791
accent
#5BE444
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5016

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

Preview Lab → · Contrast checker → · Palette generator →

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