#504A12#504A12

#504A12 is a dark, moderate yellow. Relative luminance 0.066; OKLCH L 40.3% C 0.074 H 103.1°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#504A12
RGBrgb(80, 74, 18)
HSLhsl(54, 63%, 19%)
HSVhsv(54, 78%, 31%)
CMYKcmyk(0%, 7.5%, 77.5%, 68.6%)
CIE-LABlab(30.99, -4.94, 32.58)
CIE-LCHlch(30.99, 32.96, 98.62°)
OKLaboklab(40.34% -0.0169 0.0724)
OKLCHoklch(40.34% 0.074 103.1)
XYZxyz(5.8665, 6.6469, 1.5461)
Luminance0.0665 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504A12 #121850
analogous
#502B12 #504A12 #375012
triadic
#504A12 #12504A #4A1250
tetradic
#504A12 #12502B #121850 #501237
square
#504A12 #12502B #121850 #501237
split-complementary
#504A12 #123750 #2B1250
monochromatic
#191706 #1E1C07 #504A12 #82781D #B4A628

Accessibility & contrast

On white

9.02
#504A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#504A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504A12
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504A12#FFFFFF#000000##FFFFFF
##504A121.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514709
Deuteranopia (green-blind)
#534A16
Tritanopia (blue-blind)
#57443F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #504a12;
/* rgb */ color: rgb(80, 74, 18);
/* oklch */ color: oklch(40.3% 0.074 103.1);
Tailwind
colors: {
  custom: {
    50: '#847c54',
    500: '#504a12',
    950: '#000000',
  },
}
SCSS
$custom: #504a12;
$custom-light: #847c54;
$custom-dark: #000000;
JSON
{
  "hex": "#504a12",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 18
  },
  "hsl": {
    "h": 54.194,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.40339,
    "c": 0.07436,
    "h": 103.1
  },
  "luminance": 0.06647
}

Semantic roles & 50–950 ramp

primary
#504A12
secondary
#353D89
accent
#51E641
background
#F8F7F5
surface
#EFEEE8
border
#CAC9C4
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #504A12

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

Preview Lab → · Contrast checker → · Palette generator →

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