#5A5512#5A5512

#5A5512 is a dark, moderate yellow. Relative luminance 0.087; OKLCH L 44.1% C 0.085 H 105.0°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5A5512
RGBrgb(90, 85, 18)
HSLhsl(56, 67%, 21%)
HSVhsv(56, 80%, 35%)
CMYKcmyk(0%, 5.6%, 80%, 64.7%)
CIE-LABlab(35.43, -6.51, 37.21)
CIE-LCHlch(35.43, 37.77, 99.92°)
OKLaboklab(44.11% -0.0219 0.0818)
OKLCHoklch(44.11% 0.085 105)
XYZxyz(7.5745, 8.7146, 1.8553)
Luminance0.0871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5512 #12175A
analogous
#5A3112 #5A5512 #3B5A12
triadic
#5A5512 #125A55 #55125A
tetradic
#5A5512 #125A31 #12175A #5A123B
square
#5A5512 #125A31 #12175A #5A123B
split-complementary
#5A5512 #123B5A #31125A
monochromatic
#1A1805 #272508 #5A5512 #8D851C #C0B526

Accessibility & contrast

On white

7.66
#5A5512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5A5512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5512
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5512#FFFFFF#000000##FFFFFF
##5A55121.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5205
Deuteranopia (green-blind)
#5F5517
Tritanopia (blue-blind)
#614F48
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a5512;
/* rgb */ color: rgb(90, 85, 18);
/* oklch */ color: oklch(44.1% 0.085 105.0);
Tailwind
colors: {
  custom: {
    50: '#8b8456',
    500: '#5a5512',
    950: '#000000',
  },
}
SCSS
$custom: #5a5512;
$custom-light: #8b8456;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5512",
  "rgb": {
    "r": 90,
    "g": 85,
    "b": 18
  },
  "hsl": {
    "h": 55.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.44112,
    "c": 0.08466,
    "h": 105
  },
  "luminance": 0.08714
}

Semantic roles & 50–950 ramp

primary
#5A5512
secondary
#353C93
accent
#4AEA3E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5512

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

Preview Lab → · Contrast checker → · Palette generator →

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