#5A5014#5A5014

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

Color values

HEX#5A5014
RGBrgb(90, 80, 20)
HSLhsl(51, 64%, 22%)
HSVhsv(51, 78%, 35%)
CMYKcmyk(0%, 11.1%, 77.8%, 64.7%)
CIE-LABlab(33.90, -3.42, 34.92)
CIE-LCHlch(33.90, 35.08, 95.60°)
OKLaboklab(42.9% -0.013 0.0774)
OKLCHoklch(42.9% 0.078 99.5)
XYZxyz(7.2117, 7.9618, 1.8186)
Luminance0.0796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5014 #141E5A
analogous
#5A2D14 #5A5014 #415A14
triadic
#5A5014 #145A50 #50145A
tetradic
#5A5014 #145A2D #141E5A #5A1441
square
#5A5014 #145A2D #141E5A #5A1441
split-complementary
#5A5014 #14415A #2D145A
monochromatic
#191606 #282309 #5A5014 #8C7D1F #BEA92A

Accessibility & contrast

On white

8.10
#5A5014 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A5014
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5014#FFFFFF#000000##FFFFFF
##5A50141.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E0A
Deuteranopia (green-blind)
#5B5118
Tritanopia (blue-blind)
#624A44
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a5014;
/* rgb */ color: rgb(90, 80, 20);
/* oklch */ color: oklch(42.9% 0.078 99.5);
Tailwind
colors: {
  custom: {
    50: '#8b8056',
    500: '#5a5014',
    950: '#000000',
  },
}
SCSS
$custom: #5a5014;
$custom-light: #8b8056;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5014",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 20
  },
  "hsl": {
    "h": 51.429,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.42904,
    "c": 0.07844,
    "h": 99.5
  },
  "luminance": 0.07961
}

Semantic roles & 50–950 ramp

primary
#5A5014
secondary
#384592
accent
#59E741
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5014

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

Preview Lab → · Contrast checker → · Palette generator →

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