#504D11#504D11

#504D11 is a dark, moderate yellow. Relative luminance 0.071; OKLCH L 41.1% C 0.078 H 106.5°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#504D11
RGBrgb(80, 77, 17)
HSLhsl(57, 65%, 19%)
HSVhsv(57, 79%, 31%)
CMYKcmyk(0%, 3.7%, 78.8%, 68.6%)
CIE-LABlab(31.93, -6.80, 33.93)
CIE-LCHlch(31.93, 34.61, 101.34°)
OKLaboklab(41.09% -0.0222 0.0751)
OKLCHoklch(41.09% 0.078 106.5)
XYZxyz(6.0636, 7.0539, 1.5723)
Luminance0.0705 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504D11 #111450
analogous
#502E11 #504D11 #345011
triadic
#504D11 #11504D #4D1150
tetradic
#504D11 #11502E #111450 #501134
square
#504D11 #11502E #111450 #501134
split-complementary
#504D11 #113450 #2E1150
monochromatic
#191805 #1E1C06 #504D11 #827E1C #B5AE26

Accessibility & contrast

On white

8.71
#504D11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#504D11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504D11
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504D11#FFFFFF#000000##FFFFFF
##504D111.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A07
Deuteranopia (green-blind)
#564C15
Tritanopia (blue-blind)
#564741
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #504d11;
/* rgb */ color: rgb(80, 77, 17);
/* oklch */ color: oklch(41.1% 0.078 106.5);
Tailwind
colors: {
  custom: {
    50: '#847e54',
    500: '#504d11',
    950: '#000000',
  },
}
SCSS
$custom: #504d11;
$custom-light: #847e54;
$custom-dark: #000000;
JSON
{
  "hex": "#504d11",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 17
  },
  "hsl": {
    "h": 57.143,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.41085,
    "c": 0.07828,
    "h": 106.5
  },
  "luminance": 0.07054
}

Semantic roles & 50–950 ramp

primary
#504D11
secondary
#333889
accent
#48E840
background
#F8F7F5
surface
#EFEEE8
border
#CAC9C4
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #504D11

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

Preview Lab → · Contrast checker → · Palette generator →

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