#5A5216#5A5216

#5A5216 is a dark, moderate yellow. Relative luminance 0.083; OKLCH L 43.4% C 0.079 H 101.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#5A5216
RGBrgb(90, 82, 22)
HSLhsl(53, 61%, 22%)
HSVhsv(53, 76%, 35%)
CMYKcmyk(0%, 8.9%, 75.6%, 64.7%)
CIE-LABlab(34.53, -4.51, 34.66)
CIE-LCHlch(34.53, 34.95, 97.42°)
OKLaboklab(43.41% -0.0158 0.0772)
OKLCHoklch(43.41% 0.079 101.6)
XYZxyz(7.3789, 8.2665, 1.9658)
Luminance0.0827 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5216 #161E5A
analogous
#5A3016 #5A5216 #405A16
triadic
#5A5216 #165A52 #52165A
tetradic
#5A5216 #165A30 #161E5A #5A1640
square
#5A5216 #165A30 #161E5A #5A1640
split-complementary
#5A5216 #16405A #30165A
monochromatic
#191606 #29250A #5A5216 #8B7F22 #BCAC2E

Accessibility & contrast

On white

7.91
#5A5216 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5A5216 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5216
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5216#FFFFFF#000000##FFFFFF
##5A52161.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F0D
Deuteranopia (green-blind)
#5D531A
Tritanopia (blue-blind)
#614C46
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a5216;
/* rgb */ color: rgb(90, 82, 22);
/* oklch */ color: oklch(43.4% 0.079 101.6);
Tailwind
colors: {
  custom: {
    50: '#8b8257',
    500: '#5a5216',
    950: '#000000',
  },
}
SCSS
$custom: #5a5216;
$custom-light: #8b8257;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5216",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 22
  },
  "hsl": {
    "h": 52.941,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43408,
    "c": 0.07882,
    "h": 101.6
  },
  "luminance": 0.08266
}

Semantic roles & 50–950 ramp

primary
#5A5216
secondary
#3B4591
accent
#57E444
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5216

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

Preview Lab → · Contrast checker → · Palette generator →

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