#5A4F11#5A4F11

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

Color values

HEX#5A4F11
RGBrgb(90, 79, 17)
HSLhsl(51, 68%, 21%)
HSVhsv(51, 81%, 35%)
CMYKcmyk(0%, 12.2%, 81.1%, 64.7%)
CIE-LABlab(33.58, -2.98, 35.86)
CIE-LCHlch(33.58, 35.99, 94.75°)
OKLaboklab(42.64% -0.0121 0.0787)
OKLCHoklch(42.64% 0.08 98.7)
XYZxyz(7.1140, 7.8065, 1.6623)
Luminance0.0781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4F11 #111C5A
analogous
#5A2A11 #5A4F11 #405A11
triadic
#5A4F11 #115A4F #4F115A
tetradic
#5A4F11 #115A2A #111C5A #5A1140
square
#5A4F11 #115A2A #111C5A #5A1140
split-complementary
#5A4F11 #11405A #2A115A
monochromatic
#1A1705 #272207 #5A4F11 #8D7C1B #C1A924

Accessibility & contrast

On white

8.20
#5A4F11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5A4F11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4F11
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4F11#FFFFFF#000000##FFFFFF
##5A4F111.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D06
Deuteranopia (green-blind)
#5B5115
Tritanopia (blue-blind)
#624843
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a4f11;
/* rgb */ color: rgb(90, 79, 17);
/* oklch */ color: oklch(42.6% 0.080 98.7);
Tailwind
colors: {
  custom: {
    50: '#8c8054',
    500: '#5a4f11',
    950: '#000000',
  },
}
SCSS
$custom: #5a4f11;
$custom-light: #8c8054;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4f11",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 17
  },
  "hsl": {
    "h": 50.959,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42639,
    "c": 0.07963,
    "h": 98.7
  },
  "luminance": 0.07806
}

Semantic roles & 50–950 ramp

primary
#5A4F11
secondary
#344293
accent
#57EB3D
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A4F11

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

Preview Lab → · Contrast checker → · Palette generator →

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