#504D12#504D12

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

Color values

HEX#504D12
RGBrgb(80, 77, 18)
HSLhsl(57, 63%, 19%)
HSVhsv(57, 78%, 31%)
CMYKcmyk(0%, 3.7%, 77.5%, 68.6%)
CIE-LABlab(31.94, -6.75, 33.51)
CIE-LCHlch(31.94, 34.19, 101.38°)
OKLaboklab(41.09% -0.0219 0.0744)
OKLCHoklch(41.09% 0.078 106.4)
XYZxyz(6.0716, 7.0571, 1.6145)
Luminance0.0706 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504D12 #121550
analogous
#502E12 #504D12 #345012
triadic
#504D12 #12504D #4D1250
tetradic
#504D12 #12502E #121550 #501234
square
#504D12 #12502E #121550 #501234
split-complementary
#504D12 #123450 #2E1250
monochromatic
#191806 #1E1D07 #504D12 #827D1D #B4AD28

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##504D12#FFFFFF#000000##FFFFFF
##504D121.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)
#544A08
Deuteranopia (green-blind)
#564C16
Tritanopia (blue-blind)
#564741
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #504d12;
/* rgb */ color: rgb(80, 77, 18);
/* oklch */ color: oklch(41.1% 0.078 106.4);
Tailwind
colors: {
  custom: {
    50: '#837e54',
    500: '#504d12',
    950: '#000000',
  },
}
SCSS
$custom: #504d12;
$custom-light: #837e54;
$custom-dark: #000000;
JSON
{
  "hex": "#504d12",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 18
  },
  "hsl": {
    "h": 57.097,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.41093,
    "c": 0.07756,
    "h": 106.4
  },
  "luminance": 0.07057
}

Semantic roles & 50–950 ramp

primary
#504D12
secondary
#353989
accent
#49E641
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #504D12

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

Preview Lab → · Contrast checker → · Palette generator →

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