#5A5811#5A5811

#5A5811 is a dark, moderate yellow. Relative luminance 0.092; OKLCH L 44.8% C 0.088 H 107.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5A5811
RGBrgb(90, 88, 17)
HSLhsl(58, 68%, 21%)
HSVhsv(58, 81%, 35%)
CMYKcmyk(0%, 2.2%, 81.1%, 64.7%)
CIE-LABlab(36.35, -8.31, 38.45)
CIE-LCHlch(36.35, 39.34, 102.20°)
OKLaboklab(44.85% -0.0271 0.0842)
OKLCHoklch(44.85% 0.088 107.8)
XYZxyz(7.8077, 9.1938, 1.8935)
Luminance0.0919 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5811 #11135A
analogous
#5A3311 #5A5811 #375A11
triadic
#5A5811 #115A58 #58115A
tetradic
#5A5811 #115A33 #11135A #5A1137
square
#5A5811 #115A33 #11135A #5A1137
split-complementary
#5A5811 #11375A #33115A
monochromatic
#1A1905 #272607 #5A5811 #8D8A1B #C1BD24

Accessibility & contrast

On white

7.40
#5A5811 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5A5811 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5811
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5811#FFFFFF#000000##FFFFFF
##5A58111.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605403
Deuteranopia (green-blind)
#615717
Tritanopia (blue-blind)
#61524B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a5811;
/* rgb */ color: rgb(90, 88, 17);
/* oklch */ color: oklch(44.8% 0.088 107.8);
Tailwind
colors: {
  custom: {
    50: '#8b8656',
    500: '#5a5811',
    950: '#000000',
  },
}
SCSS
$custom: #5a5811;
$custom-light: #8b8656;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5811",
  "rgb": {
    "r": 90,
    "g": 88,
    "b": 17
  },
  "hsl": {
    "h": 58.356,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.44848,
    "c": 0.08846,
    "h": 107.8
  },
  "luminance": 0.09194
}

Semantic roles & 50–950 ramp

primary
#5A5811
secondary
#343793
accent
#41EB3D
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A5811

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

Preview Lab → · Contrast checker → · Palette generator →

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