#5A500F#5A500F

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

Color values

HEX#5A500F
RGBrgb(90, 80, 15)
HSLhsl(52, 71%, 21%)
HSVhsv(52, 83%, 35%)
CMYKcmyk(0%, 11.1%, 83.3%, 64.7%)
CIE-LABlab(33.87, -3.67, 36.92)
CIE-LCHlch(33.87, 37.10, 95.68°)
OKLaboklab(42.87% -0.0142 0.0805)
OKLCHoklch(42.87% 0.082 100)
XYZxyz(7.1717, 7.9458, 1.6078)
Luminance0.0795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A500F #0F195A
analogous
#5A2A0F #5A500F #3E5A0F
triadic
#5A500F #0F5A50 #500F5A
tetradic
#5A500F #0F5A2A #0F195A #5A0F3E
square
#5A500F #0F5A2A #0F195A #5A0F3E
split-complementary
#5A500F #0F3E5A #2A0F5A
monochromatic
#1A1704 #262106 #5A500F #8E7F18 #C3AD20

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A500F#FFFFFF#000000##FFFFFF
##5A500F1.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)
#594E03
Deuteranopia (green-blind)
#5B5114
Tritanopia (blue-blind)
#624944
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a500f;
/* rgb */ color: rgb(90, 80, 15);
/* oklch */ color: oklch(42.9% 0.082 100.0);
Tailwind
colors: {
  custom: {
    50: '#8c8054',
    500: '#5a500f',
    950: '#000000',
  },
}
SCSS
$custom: #5a500f;
$custom-light: #8c8054;
$custom-dark: #000000;
JSON
{
  "hex": "#5a500f",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 15
  },
  "hsl": {
    "h": 52,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42867,
    "c": 0.08176,
    "h": 100
  },
  "luminance": 0.07945
}

Semantic roles & 50–950 ramp

primary
#5A500F
secondary
#313E94
accent
#52EE3A
background
#F8F7F5
surface
#F0EEE8
border
#CBC9C4
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A500F

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

Preview Lab → · Contrast checker → · Palette generator →

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