#5A580F#5A580F

#5A580F is a dark, moderate yellow. Relative luminance 0.092; OKLCH L 44.8% C 0.090 H 107.9°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5A580F
RGBrgb(90, 88, 15)
HSLhsl(58, 71%, 21%)
HSVhsv(58, 83%, 35%)
CMYKcmyk(0%, 2.2%, 83.3%, 64.7%)
CIE-LABlab(36.34, -8.41, 39.16)
CIE-LCHlch(36.34, 40.05, 102.11°)
OKLaboklab(44.84% -0.0275 0.0853)
OKLCHoklch(44.84% 0.09 107.9)
XYZxyz(7.7927, 9.1879, 1.8148)
Luminance0.0919 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A580F #0F115A
analogous
#5A320F #5A580F #365A0F
triadic
#5A580F #0F5A58 #580F5A
tetradic
#5A580F #0F5A32 #0F115A #5A0F36
square
#5A580F #0F5A32 #0F115A #5A0F36
split-complementary
#5A580F #0F365A #320F5A
monochromatic
#1A1A04 #262506 #5A580F #8E8B18 #C3BF20

Accessibility & contrast

On white

7.40
#5A580F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5A580F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A580F
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A580F#FFFFFF#000000##FFFFFF
##5A580F1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605400
Deuteranopia (green-blind)
#615715
Tritanopia (blue-blind)
#61524A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a580f;
/* rgb */ color: rgb(90, 88, 15);
/* oklch */ color: oklch(44.8% 0.090 107.9);
Tailwind
colors: {
  custom: {
    50: '#8c8655',
    500: '#5a580f',
    950: '#000000',
  },
}
SCSS
$custom: #5a580f;
$custom-light: #8c8655;
$custom-dark: #000000;
JSON
{
  "hex": "#5a580f",
  "rgb": {
    "r": 90,
    "g": 88,
    "b": 15
  },
  "hsl": {
    "h": 58.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.44836,
    "c": 0.08963,
    "h": 107.9
  },
  "luminance": 0.09188
}

Semantic roles & 50–950 ramp

primary
#5A580F
secondary
#313494
accent
#3EEE3A
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A580F

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

Preview Lab → · Contrast checker → · Palette generator →

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