#504C12#504C12

#504C12 is a dark, moderate yellow. Relative luminance 0.069; OKLCH L 40.8% C 0.076 H 105.4°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#504C12
RGBrgb(80, 76, 18)
HSLhsl(56, 63%, 19%)
HSVhsv(56, 78%, 31%)
CMYKcmyk(0%, 5%, 77.5%, 68.6%)
CIE-LABlab(31.62, -6.15, 33.21)
CIE-LCHlch(31.62, 33.77, 100.49°)
OKLaboklab(40.84% -0.0203 0.0737)
OKLCHoklch(40.84% 0.076 105.4)
XYZxyz(6.0021, 6.9183, 1.5913)
Luminance0.0692 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504C12 #121650
analogous
#502D12 #504C12 #355012
triadic
#504C12 #12504C #4C1250
tetradic
#504C12 #12502D #121650 #501235
square
#504C12 #12502D #121650 #501235
split-complementary
#504C12 #123550 #2D1250
monochromatic
#191806 #1E1D07 #504C12 #827B1D #B4AB28

Accessibility & contrast

On white

8.81
#504C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#504C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504C12
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504C12#FFFFFF#000000##FFFFFF
##504C121.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534908
Deuteranopia (green-blind)
#554C16
Tritanopia (blue-blind)
#564641
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #504c12;
/* rgb */ color: rgb(80, 76, 18);
/* oklch */ color: oklch(40.8% 0.076 105.4);
Tailwind
colors: {
  custom: {
    50: '#837d54',
    500: '#504c12',
    950: '#000000',
  },
}
SCSS
$custom: #504c12;
$custom-light: #837d54;
$custom-dark: #000000;
JSON
{
  "hex": "#504c12",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 18
  },
  "hsl": {
    "h": 56.129,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.40841,
    "c": 0.07646,
    "h": 105.4
  },
  "luminance": 0.06918
}

Semantic roles & 50–950 ramp

primary
#504C12
secondary
#353A89
accent
#4CE641
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #504C12

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

Preview Lab → · Contrast checker → · Palette generator →

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