#504C17#504C17

#504C17 is a dark, moderate yellow. Relative luminance 0.069; OKLCH L 40.9% C 0.072 H 105.0°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#504C17
RGBrgb(80, 76, 23)
HSLhsl(56, 55%, 20%)
HSVhsv(56, 71%, 31%)
CMYKcmyk(0%, 5%, 71.2%, 68.6%)
CIE-LABlab(31.66, -5.83, 30.94)
CIE-LCHlch(31.66, 31.48, 100.67°)
OKLaboklab(40.89% -0.0187 0.0699)
OKLCHoklch(40.89% 0.072 105)
XYZxyz(6.0476, 6.9364, 1.8308)
Luminance0.0694 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504C17 #171B50
analogous
#502F17 #504C17 #385017
triadic
#504C17 #17504C #4C1750
tetradic
#504C17 #17502F #171B50 #501738
square
#504C17 #17502F #171B50 #501738
split-complementary
#504C17 #173850 #2F1750
monochromatic
#181707 #201F09 #504C17 #807925 #AFA632

Accessibility & contrast

On white

8.80
#504C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#504C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504C17
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504C17#FFFFFF#000000##FFFFFF
##504C171.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534910
Deuteranopia (green-blind)
#544C1A
Tritanopia (blue-blind)
#564741
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #504c17;
/* rgb */ color: rgb(80, 76, 23);
/* oklch */ color: oklch(40.9% 0.072 105.0);
Tailwind
colors: {
  custom: {
    50: '#837d57',
    500: '#504c17',
    950: '#000000',
  },
}
SCSS
$custom: #504c17;
$custom-light: #837d57;
$custom-dark: #000000;
JSON
{
  "hex": "#504c17",
  "rgb": {
    "r": 80,
    "g": 76,
    "b": 23
  },
  "hsl": {
    "h": 55.789,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40887,
    "c": 0.0724,
    "h": 105
  },
  "luminance": 0.06936
}

Semantic roles & 50–950 ramp

primary
#504C17
secondary
#3C4187
accent
#54DF49
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #504C17

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

Preview Lab → · Contrast checker → · Palette generator →

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