#5A5011#5A5011

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

Color values

HEX#5A5011
RGBrgb(90, 80, 17)
HSLhsl(52, 68%, 21%)
HSVhsv(52, 81%, 35%)
CMYKcmyk(0%, 11.1%, 81.1%, 64.7%)
CIE-LABlab(33.88, -3.58, 36.15)
CIE-LCHlch(33.88, 36.33, 95.66°)
OKLaboklab(42.88% -0.0138 0.0793)
OKLCHoklch(42.88% 0.081 99.8)
XYZxyz(7.1866, 7.9518, 1.6865)
Luminance0.0795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5011 #111B5A
analogous
#5A2B11 #5A5011 #3F5A11
triadic
#5A5011 #115A50 #50115A
tetradic
#5A5011 #115A2B #111B5A #5A113F
square
#5A5011 #115A2B #111B5A #5A113F
split-complementary
#5A5011 #113F5A #2B115A
monochromatic
#1A1705 #272207 #5A5011 #8D7E1B #C1AC24

Accessibility & contrast

On white

8.11
#5A5011 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A5011
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5011#FFFFFF#000000##FFFFFF
##5A50111.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E05
Deuteranopia (green-blind)
#5B5115
Tritanopia (blue-blind)
#624944
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a5011;
/* rgb */ color: rgb(90, 80, 17);
/* oklch */ color: oklch(42.9% 0.081 99.8);
Tailwind
colors: {
  custom: {
    50: '#8c8055',
    500: '#5a5011',
    950: '#000000',
  },
}
SCSS
$custom: #5a5011;
$custom-light: #8c8055;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5011",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 17
  },
  "hsl": {
    "h": 51.781,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42881,
    "c": 0.0805,
    "h": 99.8
  },
  "luminance": 0.07951
}

Semantic roles & 50–950 ramp

primary
#5A5011
secondary
#344193
accent
#55EB3D
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5011

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

Preview Lab → · Contrast checker → · Palette generator →

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