#504B17#504B17

#504B17 is a dark, moderate yellow. Relative luminance 0.068; OKLCH L 40.6% C 0.071 H 103.8°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#504B17
RGBrgb(80, 75, 23)
HSLhsl(55, 55%, 20%)
HSVhsv(55, 71%, 31%)
CMYKcmyk(0%, 6.2%, 71.2%, 68.6%)
CIE-LABlab(31.35, -5.22, 30.61)
CIE-LCHlch(31.35, 31.05, 99.69°)
OKLaboklab(40.64% -0.017 0.0692)
OKLCHoklch(40.64% 0.071 103.8)
XYZxyz(5.9792, 6.7997, 1.8080)
Luminance0.0680 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504B17 #171C50
analogous
#502E17 #504B17 #385017
triadic
#504B17 #17504B #4B1750
tetradic
#504B17 #17502E #171C50 #501738
square
#504B17 #17502E #171C50 #501738
split-complementary
#504B17 #173850 #2E1750
monochromatic
#181607 #201E09 #504B17 #807825 #AFA432

Accessibility & contrast

On white

8.90
#504B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#504B17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504B17
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504B17#FFFFFF#000000##FFFFFF
##504B171.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524810
Deuteranopia (green-blind)
#544B1A
Tritanopia (blue-blind)
#564640
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #504b17;
/* rgb */ color: rgb(80, 75, 23);
/* oklch */ color: oklch(40.6% 0.071 103.8);
Tailwind
colors: {
  custom: {
    50: '#837d57',
    500: '#504b17',
    950: '#000000',
  },
}
SCSS
$custom: #504b17;
$custom-light: #837d57;
$custom-dark: #000000;
JSON
{
  "hex": "#504b17",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 23
  },
  "hsl": {
    "h": 54.737,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40637,
    "c": 0.07129,
    "h": 103.8
  },
  "luminance": 0.06799
}

Semantic roles & 50–950 ramp

primary
#504B17
secondary
#3C4287
accent
#56DF49
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #504B17

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

Preview Lab → · Contrast checker → · Palette generator →

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