#504E12#504E12

#504E12 is a dark, moderate yellow. Relative luminance 0.072; OKLCH L 41.3% C 0.079 H 107.5°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#504E12
RGBrgb(80, 78, 18)
HSLhsl(58, 63%, 19%)
HSVhsv(58, 78%, 31%)
CMYKcmyk(0%, 2.5%, 77.5%, 68.6%)
CIE-LABlab(32.25, -7.34, 33.82)
CIE-LCHlch(32.25, 34.61, 102.25°)
OKLaboklab(41.35% -0.0236 0.075)
OKLCHoklch(41.35% 0.079 107.5)
XYZxyz(6.1421, 7.1981, 1.6380)
Luminance0.0720 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504E12 #121450
analogous
#502F12 #504E12 #335012
triadic
#504E12 #12504E #4E1250
tetradic
#504E12 #12502F #121450 #501233
square
#504E12 #12502F #121450 #501233
split-complementary
#504E12 #123350 #2F1250
monochromatic
#191806 #1E1D07 #504E12 #827F1D #B4AF28

Accessibility & contrast

On white

8.61
#504E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #504E12
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504E12#FFFFFF#000000##FFFFFF
##504E121.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B08
Deuteranopia (green-blind)
#564D16
Tritanopia (blue-blind)
#564842
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #504e12;
/* rgb */ color: rgb(80, 78, 18);
/* oklch */ color: oklch(41.3% 0.079 107.5);
Tailwind
colors: {
  custom: {
    50: '#837f55',
    500: '#504e12',
    950: '#000000',
  },
}
SCSS
$custom: #504e12;
$custom-light: #837f55;
$custom-dark: #000000;
JSON
{
  "hex": "#504e12",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 18
  },
  "hsl": {
    "h": 58.065,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.41346,
    "c": 0.07867,
    "h": 107.5
  },
  "luminance": 0.07198
}

Semantic roles & 50–950 ramp

primary
#504E12
secondary
#353889
accent
#47E641
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #504E12

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

Preview Lab → · Contrast checker → · Palette generator →

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