#5A5116#5A5116

#5A5116 is a dark, moderate yellow. Relative luminance 0.081; OKLCH L 43.2% C 0.078 H 100.4°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5A5116
RGBrgb(90, 81, 22)
HSLhsl(52, 61%, 22%)
HSVhsv(52, 76%, 35%)
CMYKcmyk(0%, 10%, 75.6%, 64.7%)
CIE-LABlab(34.23, -3.91, 34.35)
CIE-LCHlch(34.23, 34.57, 96.50°)
OKLaboklab(43.16% -0.0141 0.0766)
OKLCHoklch(43.16% 0.078 100.4)
XYZxyz(7.3040, 8.1168, 1.9409)
Luminance0.0812 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5116 #161F5A
analogous
#5A2F16 #5A5116 #415A16
triadic
#5A5116 #165A51 #51165A
tetradic
#5A5116 #165A2F #161F5A #5A1641
square
#5A5116 #165A2F #161F5A #5A1641
split-complementary
#5A5116 #16415A #2F165A
monochromatic
#191606 #29250A #5A5116 #8B7D22 #BCAA2E

Accessibility & contrast

On white

8.01
#5A5116 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5A5116 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5116
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5116#FFFFFF#000000##FFFFFF
##5A51161.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F0D
Deuteranopia (green-blind)
#5C521A
Tritanopia (blue-blind)
#614B45
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a5116;
/* rgb */ color: rgb(90, 81, 22);
/* oklch */ color: oklch(43.2% 0.078 100.4);
Tailwind
colors: {
  custom: {
    50: '#8b8157',
    500: '#5a5116',
    950: '#000000',
  },
}
SCSS
$custom: #5a5116;
$custom-light: #8b8157;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5116",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 22
  },
  "hsl": {
    "h": 52.059,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43164,
    "c": 0.07787,
    "h": 100.4
  },
  "luminance": 0.08116
}

Semantic roles & 50–950 ramp

primary
#5A5116
secondary
#3B4691
accent
#59E444
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5116

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

Preview Lab → · Contrast checker → · Palette generator →

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