#504E18#504E18

#504E18 is a dark, moderate yellow. Relative luminance 0.072; OKLCH L 41.4% C 0.074 H 107.2°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#504E18
RGBrgb(80, 78, 24)
HSLhsl(58, 54%, 20%)
HSVhsv(58, 70%, 31%)
CMYKcmyk(0%, 2.5%, 70%, 68.6%)
CIE-LABlab(32.30, -6.96, 31.12)
CIE-LCHlch(32.30, 31.89, 102.60°)
OKLaboklab(41.4% -0.0218 0.0705)
OKLCHoklch(41.4% 0.074 107.2)
XYZxyz(6.1977, 7.2204, 1.9312)
Luminance0.0722 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504E18 #181A50
analogous
#503218 #504E18 #365018
triadic
#504E18 #18504E #4E1850
tetradic
#504E18 #185032 #181A50 #501836
square
#504E18 #185032 #181A50 #501836
split-complementary
#504E18 #183650 #321850
monochromatic
#181707 #21200A #504E18 #7F7C26 #AEAA34

Accessibility & contrast

On white

8.59
#504E18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#504E18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504E18
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504E18#FFFFFF#000000##FFFFFF
##504E181.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B11
Deuteranopia (green-blind)
#564D1B
Tritanopia (blue-blind)
#564943
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #504e18;
/* rgb */ color: rgb(80, 78, 24);
/* oklch */ color: oklch(41.4% 0.074 107.2);
Tailwind
colors: {
  custom: {
    50: '#837f58',
    500: '#504e18',
    950: '#000000',
  },
}
SCSS
$custom: #504e18;
$custom-light: #837f58;
$custom-dark: #000000;
JSON
{
  "hex": "#504e18",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 24
  },
  "hsl": {
    "h": 57.857,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.41401,
    "c": 0.07379,
    "h": 107.2
  },
  "luminance": 0.0722
}

Semantic roles & 50–950 ramp

primary
#504E18
secondary
#3D4087
accent
#50DD4B
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #504E18

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

Preview Lab → · Contrast checker → · Palette generator →

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