#5A540F#5A540F

#5A540F is a dark, moderate yellow. Relative luminance 0.085; OKLCH L 43.8% C 0.086 H 104.2°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5A540F
RGBrgb(90, 84, 15)
HSLhsl(55, 71%, 21%)
HSVhsv(55, 83%, 35%)
CMYKcmyk(0%, 6.7%, 83.3%, 64.7%)
CIE-LABlab(35.10, -6.06, 38.04)
CIE-LCHlch(35.10, 38.52, 99.05°)
OKLaboklab(43.85% -0.021 0.0829)
OKLCHoklch(43.85% 0.086 104.2)
XYZxyz(7.4733, 8.5491, 1.7083)
Luminance0.0855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A540F #0F155A
analogous
#5A2E0F #5A540F #3A5A0F
triadic
#5A540F #0F5A54 #540F5A
tetradic
#5A540F #0F5A2E #0F155A #5A0F3A
square
#5A540F #0F5A2E #0F155A #5A0F3A
split-complementary
#5A540F #0F3A5A #2E0F5A
monochromatic
#1A1804 #262306 #5A540F #8E8518 #C3B620

Accessibility & contrast

On white

7.75
#5A540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5A540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A540F
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A540F#FFFFFF#000000##FFFFFF
##5A540F1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5101
Deuteranopia (green-blind)
#5E5414
Tritanopia (blue-blind)
#614E47
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a540f;
/* rgb */ color: rgb(90, 84, 15);
/* oklch */ color: oklch(43.8% 0.086 104.2);
Tailwind
colors: {
  custom: {
    50: '#8c8354',
    500: '#5a540f',
    950: '#000000',
  },
}
SCSS
$custom: #5a540f;
$custom-light: #8c8354;
$custom-dark: #000000;
JSON
{
  "hex": "#5a540f",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 55.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.43846,
    "c": 0.08551,
    "h": 104.2
  },
  "luminance": 0.08549
}

Semantic roles & 50–950 ramp

primary
#5A540F
secondary
#313994
accent
#48EE3A
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A540F

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

Preview Lab → · Contrast checker → · Palette generator →

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