#504F18#504F18

#504F18 is a dark, moderate yellow. Relative luminance 0.074; OKLCH L 41.7% C 0.075 H 108.3°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#504F18
RGBrgb(80, 79, 24)
HSLhsl(59, 54%, 20%)
HSVhsv(59, 70%, 31%)
CMYKcmyk(0%, 1.2%, 70%, 68.6%)
CIE-LABlab(32.62, -7.55, 31.46)
CIE-LCHlch(32.62, 32.35, 103.50°)
OKLaboklab(41.65% -0.0235 0.0712)
OKLCHoklch(41.65% 0.075 108.3)
XYZxyz(6.2693, 7.3636, 1.9550)
Luminance0.0736 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504F18 #181950
analogous
#503318 #504F18 #355018
triadic
#504F18 #18504F #4F1850
tetradic
#504F18 #185033 #181950 #501835
square
#504F18 #185033 #181950 #501835
split-complementary
#504F18 #183550 #331850
monochromatic
#181707 #21210A #504F18 #7F7D26 #AEAC34

Accessibility & contrast

On white

8.49
#504F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#504F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504F18
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504F18#FFFFFF#000000##FFFFFF
##504F181.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C11
Deuteranopia (green-blind)
#574E1B
Tritanopia (blue-blind)
#564A44
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #504f18;
/* rgb */ color: rgb(80, 79, 24);
/* oklch */ color: oklch(41.7% 0.075 108.3);
Tailwind
colors: {
  custom: {
    50: '#838058',
    500: '#504f18',
    950: '#000000',
  },
}
SCSS
$custom: #504f18;
$custom-light: #838058;
$custom-dark: #000000;
JSON
{
  "hex": "#504f18",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 24
  },
  "hsl": {
    "h": 58.929,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.41654,
    "c": 0.07497,
    "h": 108.3
  },
  "luminance": 0.07363
}

Semantic roles & 50–950 ramp

primary
#504F18
secondary
#3D3E87
accent
#4DDD4B
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #504F18

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

Preview Lab → · Contrast checker → · Palette generator →

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