#5C540F#5C540F

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

Color values

HEX#5C540F
RGBrgb(92, 84, 15)
HSLhsl(54, 72%, 21%)
HSVhsv(54, 84%, 36%)
CMYKcmyk(0%, 8.7%, 83.7%, 63.9%)
CIE-LABlab(35.30, -5.06, 38.29)
CIE-LCHlch(35.30, 38.63, 97.53°)
OKLaboklab(44.05% -0.0183 0.0834)
OKLCHoklch(44.05% 0.085 102.4)
XYZxyz(7.6705, 8.6508, 1.7176)
Luminance0.0865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C540F #0F175C
analogous
#5C2D0F #5C540F #3D5C0F
triadic
#5C540F #0F5C54 #540F5C
tetradic
#5C540F #0F5C2D #0F175C #5C0F3D
square
#5C540F #0F5C2D #0F175C #5C0F3D
split-complementary
#5C540F #0F3D5C #2D0F5C
monochromatic
#1A1804 #272406 #5C540F #918418 #C5B420

Accessibility & contrast

On white

7.69
#5C540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5C540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C540F
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C540F#FFFFFF#000000##FFFFFF
##5C540F1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5101
Deuteranopia (green-blind)
#5F5514
Tritanopia (blue-blind)
#644D47
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5c540f;
/* rgb */ color: rgb(92, 84, 15);
/* oklch */ color: oklch(44.1% 0.085 102.4);
Tailwind
colors: {
  custom: {
    50: '#8d8354',
    500: '#5c540f',
    950: '#000000',
  },
}
SCSS
$custom: #5c540f;
$custom-light: #8d8354;
$custom-dark: #000000;
JSON
{
  "hex": "#5c540f",
  "rgb": {
    "r": 92,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 53.766,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.44054,
    "c": 0.08534,
    "h": 102.4
  },
  "luminance": 0.0865
}

Semantic roles & 50–950 ramp

primary
#5C540F
secondary
#313C95
accent
#4CEF39
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0D0A03
muted
#7D7C78

Preview Lab

Preview with #5C540F

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

Preview Lab → · Contrast checker → · Palette generator →

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