#504F22#504F22

#504F22 is a dark, moderate yellow. Relative luminance 0.074; OKLCH L 41.8% C 0.065 H 107.7°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#504F22
RGBrgb(80, 79, 34)
HSLhsl(59, 40%, 22%)
HSVhsv(59, 58%, 31%)
CMYKcmyk(0%, 1.2%, 57.5%, 68.6%)
CIE-LABlab(32.73, -6.70, 26.37)
CIE-LCHlch(32.73, 27.21, 104.25°)
OKLaboklab(41.78% -0.0198 0.0618)
OKLCHoklch(41.78% 0.065 107.7)
XYZxyz(6.3931, 7.4131, 2.6072)
Luminance0.0741 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504F22 #222350
analogous
#503822 #504F22 #3A5022
triadic
#504F22 #22504F #4F2250
tetradic
#504F22 #225038 #222350 #50223A
square
#504F22 #225038 #222350 #50223A
split-complementary
#504F22 #223A50 #382250
monochromatic
#151509 #252510 #504F22 #7B7934 #A6A447

Accessibility & contrast

On white

8.46
#504F22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#504F22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504F22
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504F22#FFFFFF#000000##FFFFFF
##504F221.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554C1E
Deuteranopia (green-blind)
#564E24
Tritanopia (blue-blind)
#554A45
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #504f22;
/* rgb */ color: rgb(80, 79, 34);
/* oklch */ color: oklch(41.8% 0.065 107.7);
Tailwind
colors: {
  custom: {
    50: '#82805f',
    500: '#504f22',
    950: '#000000',
  },
}
SCSS
$custom: #504f22;
$custom-light: #82805f;
$custom-dark: #000000;
JSON
{
  "hex": "#504f22",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 34
  },
  "hsl": {
    "h": 58.696,
    "s": 40.351,
    "l": 22.353
  },
  "oklch": {
    "l": 0.41776,
    "c": 0.06493,
    "h": 107.7
  },
  "luminance": 0.07413
}

Semantic roles & 50–950 ramp

primary
#504F22
secondary
#4A4B84
accent
#5AD058
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #504F22

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

Preview Lab → · Contrast checker → · Palette generator →

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