#5A5019#5A5019

#5A5019 is a dark, moderate yellow. Relative luminance 0.080; OKLCH L 43.0% C 0.074 H 98.9°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5A5019
RGBrgb(90, 80, 25)
HSLhsl(51, 57%, 23%)
HSVhsv(51, 72%, 35%)
CMYKcmyk(0%, 11.1%, 72.2%, 64.7%)
CIE-LABlab(33.94, -3.12, 32.67)
CIE-LCHlch(33.94, 32.82, 95.46°)
OKLaboklab(42.95% -0.0115 0.0736)
OKLCHoklch(42.95% 0.075 98.9)
XYZxyz(7.2609, 7.9815, 2.0776)
Luminance0.0798 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5019 #19235A
analogous
#5A2F19 #5A5019 #445A19
triadic
#5A5019 #195A50 #50195A
tetradic
#5A5019 #195A2F #19235A #5A1944
square
#5A5019 #195A2F #19235A #5A1944
split-complementary
#5A5019 #19445A #2F195A
monochromatic
#181507 #2A250C #5A5019 #8A7B26 #BAA534

Accessibility & contrast

On white

8.09
#5A5019 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5A5019 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5019
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5019#FFFFFF#000000##FFFFFF
##5A50191.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E12
Deuteranopia (green-blind)
#5B511C
Tritanopia (blue-blind)
#614A45
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a5019;
/* rgb */ color: rgb(90, 80, 25);
/* oklch */ color: oklch(43.0% 0.074 98.9);
Tailwind
colors: {
  custom: {
    50: '#8b8059',
    500: '#5a5019',
    950: '#000000',
  },
}
SCSS
$custom: #5a5019;
$custom-light: #8b8059;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5019",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 25
  },
  "hsl": {
    "h": 50.769,
    "s": 56.522,
    "l": 22.549
  },
  "oklch": {
    "l": 0.4295,
    "c": 0.0745,
    "h": 98.9
  },
  "luminance": 0.07981
}

Semantic roles & 50–950 ramp

primary
#5A5019
secondary
#3E4B90
accent
#5FE048
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A04
muted
#7D7C79

Preview Lab

Preview with #5A5019

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

Preview Lab → · Contrast checker → · Palette generator →

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