#504A15#504A15

#504A15 is a dark, moderate yellow. Relative luminance 0.067; OKLCH L 40.4% C 0.072 H 102.8°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#504A15
RGBrgb(80, 74, 21)
HSLhsl(54, 58%, 20%)
HSVhsv(54, 74%, 31%)
CMYKcmyk(0%, 7.5%, 73.7%, 68.6%)
CIE-LABlab(31.01, -4.75, 31.23)
CIE-LCHlch(31.01, 31.59, 98.66°)
OKLaboklab(40.37% -0.0159 0.0702)
OKLCHoklch(40.37% 0.072 102.8)
XYZxyz(5.8926, 6.6574, 1.6839)
Luminance0.0666 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504A15 #151B50
analogous
#502C15 #504A15 #395015
triadic
#504A15 #15504A #4A1550
tetradic
#504A15 #15502C #151B50 #501539
square
#504A15 #15502C #151B50 #501539
split-complementary
#504A15 #153950 #2C1550
monochromatic
#181606 #201D08 #504A15 #807722 #B1A42E

Accessibility & contrast

On white

9.01
#504A15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#504A15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504A15
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504A15#FFFFFF#000000##FFFFFF
##504A151.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#51470E
Deuteranopia (green-blind)
#534A18
Tritanopia (blue-blind)
#56443F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #504a15;
/* rgb */ color: rgb(80, 74, 21);
/* oklch */ color: oklch(40.4% 0.072 102.8);
Tailwind
colors: {
  custom: {
    50: '#837c56',
    500: '#504a15',
    950: '#000000',
  },
}
SCSS
$custom: #504a15;
$custom-light: #837c56;
$custom-dark: #000000;
JSON
{
  "hex": "#504a15",
  "rgb": {
    "r": 80,
    "g": 74,
    "b": 21
  },
  "hsl": {
    "h": 53.898,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.40366,
    "c": 0.07196,
    "h": 102.8
  },
  "luminance": 0.06657
}

Semantic roles & 50–950 ramp

primary
#504A15
secondary
#394188
accent
#56E246
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #504A15

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

Preview Lab → · Contrast checker → · Palette generator →

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