#504A18#504A18

#504A18 is a dark, moderate yellow. Relative luminance 0.067; OKLCH L 40.4% C 0.069 H 102.5°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#504A18
RGBrgb(80, 74, 24)
HSLhsl(54, 54%, 20%)
HSVhsv(54, 70%, 31%)
CMYKcmyk(0%, 7.5%, 70%, 68.6%)
CIE-LABlab(31.04, -4.54, 29.79)
CIE-LCHlch(31.04, 30.13, 98.67°)
OKLaboklab(40.4% -0.015 0.0677)
OKLCHoklch(40.4% 0.069 102.5)
XYZxyz(5.9221, 6.6692, 1.8393)
Luminance0.0667 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504A18 #181E50
analogous
#502E18 #504A18 #3A5018
triadic
#504A18 #18504A #4A1850
tetradic
#504A18 #18502E #181E50 #50183A
square
#504A18 #18502E #181E50 #50183A
split-complementary
#504A18 #183A50 #2E1850
monochromatic
#181607 #211E0A #504A18 #7F7626 #AEA134

Accessibility & contrast

On white

9.00
#504A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #504A18
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504A18#FFFFFF#000000##FFFFFF
##504A181.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514812
Deuteranopia (green-blind)
#534A1B
Tritanopia (blue-blind)
#564540
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #504a18;
/* rgb */ color: rgb(80, 74, 24);
/* oklch */ color: oklch(40.4% 0.069 102.5);
Tailwind
colors: {
  custom: {
    50: '#837c58',
    500: '#504a18',
    950: '#000000',
  },
}
SCSS
$custom: #504a18;
$custom-light: #837c58;
$custom-dark: #000000;
JSON
{
  "hex": "#504a18",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 24
  },
  "hsl": {
    "h": 53.571,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40397,
    "c": 0.06931,
    "h": 102.5
  },
  "luminance": 0.06669
}

Semantic roles & 50–950 ramp

primary
#504A18
secondary
#3D4587
accent
#5ADD4B
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #504A18

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

Preview Lab → · Contrast checker → · Palette generator →

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