#504D1E#504D1E

#504D1E is a dark, moderate yellow. Relative luminance 0.071; OKLCH L 41.2% C 0.067 H 105.6°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#504D1E
RGBrgb(80, 77, 30)
HSLhsl(56, 45%, 22%)
HSVhsv(56, 63%, 31%)
CMYKcmyk(0%, 3.7%, 62.5%, 68.6%)
CIE-LABlab(32.05, -5.87, 27.77)
CIE-LCHlch(32.05, 28.39, 101.94°)
OKLaboklab(41.22% -0.0179 0.0643)
OKLCHoklch(41.22% 0.067 105.6)
XYZxyz(6.1967, 7.1072, 2.2734)
Luminance0.0711 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504D1E #1E2150
analogous
#50341E #504D1E #3A501E
triadic
#504D1E #1E504D #4D1E50
tetradic
#504D1E #1E5034 #1E2150 #501E3A
square
#504D1E #1E5034 #1E2150 #501E3A
split-complementary
#504D1E #1E3A50 #341E50
monochromatic
#161508 #23220D #504D1E #7D782F #A9A33F

Accessibility & contrast

On white

8.67
#504D1E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#504D1E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504D1E
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504D1E#FFFFFF#000000##FFFFFF
##504D1E1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A19
Deuteranopia (green-blind)
#554C20
Tritanopia (blue-blind)
#564843
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #504d1e;
/* rgb */ color: rgb(80, 77, 30);
/* oklch */ color: oklch(41.2% 0.067 105.6);
Tailwind
colors: {
  custom: {
    50: '#837e5c',
    500: '#504d1e',
    950: '#000000',
  },
}
SCSS
$custom: #504d1e;
$custom-light: #837e5c;
$custom-dark: #000000;
JSON
{
  "hex": "#504d1e",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 30
  },
  "hsl": {
    "h": 56.4,
    "s": 45.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.41219,
    "c": 0.06679,
    "h": 105.6
  },
  "luminance": 0.07107
}

Semantic roles & 50–950 ramp

primary
#504D1E
secondary
#454985
accent
#5AD553
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #504D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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