#504E1B#504E1B

#504E1B is a dark, moderate yellow. Relative luminance 0.072; OKLCH L 41.4% C 0.071 H 107.0°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#504E1B
RGBrgb(80, 78, 27)
HSLhsl(58, 50%, 21%)
HSVhsv(58, 66%, 31%)
CMYKcmyk(0%, 2.5%, 66.3%, 68.6%)
CIE-LABlab(32.33, -6.73, 29.66)
CIE-LCHlch(32.33, 30.41, 102.78°)
OKLaboklab(41.43% -0.0208 0.0679)
OKLCHoklch(41.43% 0.071 107)
XYZxyz(6.2307, 7.2336, 2.1047)
Luminance0.0723 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504E1B #1B1D50
analogous
#50331B #504E1B #37501B
triadic
#504E1B #1B504E #4E1B50
tetradic
#504E1B #1B5033 #1B1D50 #501B37
square
#504E1B #1B5033 #1B1D50 #501B37
split-complementary
#504E1B #1B3750 #331B50
monochromatic
#171608 #22210C #504E1B #7E7B2A #ACA73A

Accessibility & contrast

On white

8.58
#504E1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#504E1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504E1B
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504E1B#FFFFFF#000000##FFFFFF
##504E1B1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B15
Deuteranopia (green-blind)
#564D1E
Tritanopia (blue-blind)
#564943
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #504e1b;
/* rgb */ color: rgb(80, 78, 27);
/* oklch */ color: oklch(41.4% 0.071 107.0);
Tailwind
colors: {
  custom: {
    50: '#837f5a',
    500: '#504e1b',
    950: '#000000',
  },
}
SCSS
$custom: #504e1b;
$custom-light: #837f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#504e1b",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 27
  },
  "hsl": {
    "h": 57.736,
    "s": 49.533,
    "l": 20.98
  },
  "oklch": {
    "l": 0.41434,
    "c": 0.07101,
    "h": 107
  },
  "luminance": 0.07233
}

Semantic roles & 50–950 ramp

primary
#504E1B
secondary
#414486
accent
#54D94F
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #504E1B

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

Preview Lab → · Contrast checker → · Palette generator →

#504E1B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva