#504F12#504F12

#504F12 is a dark, moderate yellow. Relative luminance 0.073; OKLCH L 41.6% C 0.080 H 108.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#504F12
RGBrgb(80, 79, 18)
HSLhsl(59, 63%, 19%)
HSVhsv(59, 78%, 31%)
CMYKcmyk(0%, 1.2%, 77.5%, 68.6%)
CIE-LABlab(32.57, -7.94, 34.13)
CIE-LCHlch(32.57, 35.04, 103.09°)
OKLaboklab(41.6% -0.0253 0.0757)
OKLCHoklch(41.6% 0.08 108.5)
XYZxyz(6.2137, 7.3413, 1.6619)
Luminance0.0734 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504F12 #121350
analogous
#503012 #504F12 #325012
triadic
#504F12 #12504F #4F1250
tetradic
#504F12 #125030 #121350 #501232
square
#504F12 #125030 #121350 #501232
split-complementary
#504F12 #123250 #301250
monochromatic
#191906 #1E1E07 #504F12 #82801D #B4B228

Accessibility & contrast

On white

8.51
#504F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #504F12
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504F12#FFFFFF#000000##FFFFFF
##504F121.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B08
Deuteranopia (green-blind)
#574E16
Tritanopia (blue-blind)
#564943
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #504f12;
/* rgb */ color: rgb(80, 79, 18);
/* oklch */ color: oklch(41.6% 0.080 108.5);
Tailwind
colors: {
  custom: {
    50: '#838055',
    500: '#504f12',
    950: '#000000',
  },
}
SCSS
$custom: #504f12;
$custom-light: #838055;
$custom-dark: #000000;
JSON
{
  "hex": "#504f12",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 59.032,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.41599,
    "c": 0.07981,
    "h": 108.5
  },
  "luminance": 0.07341
}

Semantic roles & 50–950 ramp

primary
#504F12
secondary
#353689
accent
#44E641
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #504F12

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

Preview Lab → · Contrast checker → · Palette generator →

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