#504D15#504D15

#504D15 is a dark, moderate yellow. Relative luminance 0.071; OKLCH L 41.1% C 0.075 H 106.3°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#504D15
RGBrgb(80, 77, 21)
HSLhsl(57, 58%, 20%)
HSVhsv(57, 74%, 31%)
CMYKcmyk(0%, 3.7%, 73.7%, 68.6%)
CIE-LABlab(31.96, -6.56, 32.20)
CIE-LCHlch(31.96, 32.86, 101.52°)
OKLaboklab(41.12% -0.0211 0.0722)
OKLCHoklch(41.12% 0.075 106.3)
XYZxyz(6.0977, 7.0676, 1.7523)
Luminance0.0707 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504D15 #151850
analogous
#503015 #504D15 #365015
triadic
#504D15 #15504D #4D1550
tetradic
#504D15 #155030 #151850 #501536
square
#504D15 #155030 #151850 #501536
split-complementary
#504D15 #153650 #301550
monochromatic
#181706 #201E08 #504D15 #807C22 #B1AA2E

Accessibility & contrast

On white

8.70
#504D15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#504D15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504D15
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504D15#FFFFFF#000000##FFFFFF
##504D151.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0D
Deuteranopia (green-blind)
#554C19
Tritanopia (blue-blind)
#564742
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #504d15;
/* rgb */ color: rgb(80, 77, 21);
/* oklch */ color: oklch(41.1% 0.075 106.3);
Tailwind
colors: {
  custom: {
    50: '#837e56',
    500: '#504d15',
    950: '#000000',
  },
}
SCSS
$custom: #504d15;
$custom-light: #837e56;
$custom-dark: #000000;
JSON
{
  "hex": "#504d15",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 21
  },
  "hsl": {
    "h": 56.949,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.41119,
    "c": 0.07521,
    "h": 106.3
  },
  "luminance": 0.07067
}

Semantic roles & 50–950 ramp

primary
#504D15
secondary
#393D88
accent
#4EE246
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #504D15

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

Preview Lab → · Contrast checker → · Palette generator →

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