#504C18#504C18

#504C18 is a dark, moderate yellow. Relative luminance 0.069; OKLCH L 40.9% C 0.071 H 104.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#504C18
RGBrgb(80, 76, 24)
HSLhsl(56, 54%, 20%)
HSVhsv(56, 70%, 31%)
CMYKcmyk(0%, 5%, 70%, 68.6%)
CIE-LABlab(31.67, -5.76, 30.46)
CIE-LCHlch(31.67, 31.00, 100.70°)
OKLaboklab(40.9% -0.0184 0.0691)
OKLCHoklch(40.9% 0.072 104.9)
XYZxyz(6.0578, 6.9405, 1.8845)
Luminance0.0694 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504C18 #181C50
analogous
#503018 #504C18 #385018
triadic
#504C18 #18504C #4C1850
tetradic
#504C18 #185030 #181C50 #501838
square
#504C18 #185030 #181C50 #501838
split-complementary
#504C18 #183850 #301850
monochromatic
#181607 #211F0A #504C18 #7F7926 #AEA534

Accessibility & contrast

On white

8.79
#504C18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#504C18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504C18
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504C18#FFFFFF#000000##FFFFFF
##504C181.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534911
Deuteranopia (green-blind)
#544C1B
Tritanopia (blue-blind)
#564741
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #504c18;
/* rgb */ color: rgb(80, 76, 24);
/* oklch */ color: oklch(40.9% 0.071 104.9);
Tailwind
colors: {
  custom: {
    50: '#837d58',
    500: '#504c18',
    950: '#000000',
  },
}
SCSS
$custom: #504c18;
$custom-light: #837d58;
$custom-dark: #000000;
JSON
{
  "hex": "#504c18",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 24
  },
  "hsl": {
    "h": 55.714,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40898,
    "c": 0.0715,
    "h": 104.9
  },
  "luminance": 0.0694
}

Semantic roles & 50–950 ramp

primary
#504C18
secondary
#3D4287
accent
#55DD4B
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #504C18

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

Preview Lab → · Contrast checker → · Palette generator →

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