#5A480F#5A480F

#5A480F is a dark, moderate yellow. Relative luminance 0.068; OKLCH L 41.0% C 0.076 H 90.3°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5A480F
RGBrgb(90, 72, 15)
HSLhsl(46, 71%, 21%)
HSVhsv(46, 83%, 35%)
CMYKcmyk(0%, 20%, 83.3%, 64.7%)
CIE-LABlab(31.45, 1.21, 34.69)
CIE-LCHlch(31.45, 34.71, 88.00°)
OKLaboklab(40.95% -0.0004 0.0757)
OKLCHoklch(40.95% 0.076 90.3)
XYZxyz(6.6204, 6.8433, 1.4240)
Luminance0.0684 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A480F #0F215A
analogous
#5A220F #5A480F #465A0F
triadic
#5A480F #0F5A48 #480F5A
tetradic
#5A480F #0F5A22 #0F215A #5A0F46
square
#5A480F #0F5A22 #0F215A #5A0F46
split-complementary
#5A480F #0F465A #220F5A
monochromatic
#1A1504 #261E06 #5A480F #8E7218 #C39C20

Accessibility & contrast

On white

8.87
#5A480F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5A480F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A480F
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A480F#FFFFFF#000000##FFFFFF
##5A480F1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514705
Deuteranopia (green-blind)
#564C12
Tritanopia (blue-blind)
#62413D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a480f;
/* rgb */ color: rgb(90, 72, 15);
/* oklch */ color: oklch(41.0% 0.076 90.3);
Tailwind
colors: {
  custom: {
    50: '#8c7a52',
    500: '#5a480f',
    950: '#000000',
  },
}
SCSS
$custom: #5a480f;
$custom-light: #8c7a52;
$custom-dark: #000000;
JSON
{
  "hex": "#5a480f",
  "rgb": {
    "r": 90,
    "g": 72,
    "b": 15
  },
  "hsl": {
    "h": 45.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.40951,
    "c": 0.07573,
    "h": 90.3
  },
  "luminance": 0.06843
}

Semantic roles & 50–950 ramp

primary
#5A480F
secondary
#314994
accent
#65EE3A
background
#F8F7F4
surface
#F0EDE7
border
#CBC8C3
text
#0C0902
muted
#7D7B78

Preview Lab

Preview with #5A480F

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

Preview Lab → · Contrast checker → · Palette generator →

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