#5A4F0F#5A4F0F

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

Color values

HEX#5A4F0F
RGBrgb(90, 79, 15)
HSLhsl(51, 71%, 21%)
HSVhsv(51, 83%, 35%)
CMYKcmyk(0%, 12.2%, 83.3%, 64.7%)
CIE-LABlab(33.56, -3.07, 36.64)
CIE-LCHlch(33.56, 36.76, 94.79°)
OKLaboklab(42.62% -0.0125 0.0799)
OKLCHoklch(42.62% 0.081 98.9)
XYZxyz(7.0990, 7.8005, 1.5836)
Luminance0.0780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4F0F #0F1A5A
analogous
#5A290F #5A4F0F #3F5A0F
triadic
#5A4F0F #0F5A4F #4F0F5A
tetradic
#5A4F0F #0F5A29 #0F1A5A #5A0F3F
square
#5A4F0F #0F5A29 #0F1A5A #5A0F3F
split-complementary
#5A4F0F #0F3F5A #290F5A
monochromatic
#1A1704 #262106 #5A4F0F #8E7D18 #C3AB20

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A4F0F#FFFFFF#000000##FFFFFF
##5A4F0F1.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)
#584D03
Deuteranopia (green-blind)
#5B5114
Tritanopia (blue-blind)
#624843
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a4f0f;
/* rgb */ color: rgb(90, 79, 15);
/* oklch */ color: oklch(42.6% 0.081 98.9);
Tailwind
colors: {
  custom: {
    50: '#8c8053',
    500: '#5a4f0f',
    950: '#000000',
  },
}
SCSS
$custom: #5a4f0f;
$custom-light: #8c8053;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4f0f",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 15
  },
  "hsl": {
    "h": 51.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42624,
    "c": 0.08089,
    "h": 98.9
  },
  "luminance": 0.078
}

Semantic roles & 50–950 ramp

primary
#5A4F0F
secondary
#314094
accent
#54EE3A
background
#F8F7F4
surface
#F0EEE8
border
#CBC9C4
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A4F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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