#504B18#504B18

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

Color values

HEX#504B18
RGBrgb(80, 75, 24)
HSLhsl(55, 54%, 20%)
HSVhsv(55, 70%, 31%)
CMYKcmyk(0%, 6.2%, 70%, 68.6%)
CIE-LABlab(31.36, -5.15, 30.12)
CIE-LCHlch(31.36, 30.56, 99.71°)
OKLaboklab(40.65% -0.0167 0.0684)
OKLCHoklch(40.65% 0.07 103.7)
XYZxyz(5.9894, 6.8038, 1.8617)
Luminance0.0680 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504B18 #181D50
analogous
#502F18 #504B18 #395018
triadic
#504B18 #18504B #4B1850
tetradic
#504B18 #18502F #181D50 #501839
square
#504B18 #18502F #181D50 #501839
split-complementary
#504B18 #183950 #2F1850
monochromatic
#181607 #211F0A #504B18 #7F7726 #AEA334

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##504B18#FFFFFF#000000##FFFFFF
##504B181.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)
#524812
Deuteranopia (green-blind)
#544B1B
Tritanopia (blue-blind)
#564640
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #504b18;
/* rgb */ color: rgb(80, 75, 24);
/* oklch */ color: oklch(40.6% 0.070 103.7);
Tailwind
colors: {
  custom: {
    50: '#837d58',
    500: '#504b18',
    950: '#000000',
  },
}
SCSS
$custom: #504b18;
$custom-light: #837d58;
$custom-dark: #000000;
JSON
{
  "hex": "#504b18",
  "rgb": {
    "r": 80,
    "g": 75,
    "b": 24
  },
  "hsl": {
    "h": 54.643,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40647,
    "c": 0.07039,
    "h": 103.7
  },
  "luminance": 0.06804
}

Semantic roles & 50–950 ramp

primary
#504B18
secondary
#3D4487
accent
#58DD4B
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #504B18

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

Preview Lab → · Contrast checker → · Palette generator →

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