#504D18#504D18

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

Color values

HEX#504D18
RGBrgb(80, 77, 24)
HSLhsl(57, 54%, 20%)
HSVhsv(57, 70%, 31%)
CMYKcmyk(0%, 3.7%, 70%, 68.6%)
CIE-LABlab(31.99, -6.36, 30.79)
CIE-LCHlch(31.99, 31.44, 101.67°)
OKLaboklab(41.15% -0.0201 0.0698)
OKLCHoklch(41.15% 0.073 106.1)
XYZxyz(6.1272, 7.0794, 1.9077)
Luminance0.0708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504D18 #181B50
analogous
#503118 #504D18 #375018
triadic
#504D18 #18504D #4D1850
tetradic
#504D18 #185031 #181B50 #501837
square
#504D18 #185031 #181B50 #501837
split-complementary
#504D18 #183750 #311850
monochromatic
#181707 #21200A #504D18 #7F7A26 #AEA834

Accessibility & contrast

On white

8.69
#504D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#504D18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504D18
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504D18#FFFFFF#000000##FFFFFF
##504D181.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A11
Deuteranopia (green-blind)
#554C1B
Tritanopia (blue-blind)
#564842
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #504d18;
/* rgb */ color: rgb(80, 77, 24);
/* oklch */ color: oklch(41.1% 0.073 106.1);
Tailwind
colors: {
  custom: {
    50: '#837e58',
    500: '#504d18',
    950: '#000000',
  },
}
SCSS
$custom: #504d18;
$custom-light: #837e58;
$custom-dark: #000000;
JSON
{
  "hex": "#504d18",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 24
  },
  "hsl": {
    "h": 56.786,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.41149,
    "c": 0.07264,
    "h": 106.1
  },
  "luminance": 0.07079
}

Semantic roles & 50–950 ramp

primary
#504D18
secondary
#3D4187
accent
#52DD4B
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #504D18

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

Preview Lab → · Contrast checker → · Palette generator →

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