#504F38#504F38

#504F38 is a dark, muted yellow. Relative luminance 0.076; OKLCH L 42.2% C 0.036 H 105.8°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#504F38
RGBrgb(80, 79, 56)
HSLhsl(58, 18%, 27%)
HSVhsv(58, 30%, 31%)
CMYKcmyk(0%, 1.2%, 30%, 68.6%)
CIE-LABlab(33.10, -3.88, 13.78)
CIE-LCHlch(33.10, 14.32, 105.73°)
OKLaboklab(42.19% -0.0098 0.0346)
OKLCHoklch(42.19% 0.036 105.8)
XYZxyz(6.8181, 7.5831, 4.8451)
Luminance0.0758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504F38 #383950
analogous
#504338 #504F38 #455038
triadic
#504F38 #38504F #4F3850
tetradic
#504F38 #385043 #383950 #503845
square
#504F38 #385043 #383950 #503845
split-complementary
#504F38 #384550 #433850
monochromatic
#12120D #2C2B1F #504F38 #747351 #97966B

Accessibility & contrast

On white

8.34
#504F38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#504F38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504F38
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504F38#FFFFFF#000000##FFFFFF
##504F381.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534D36
Deuteranopia (green-blind)
#544E39
Tritanopia (blue-blind)
#544C49
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #504f38;
/* rgb */ color: rgb(80, 79, 56);
/* oklch */ color: oklch(42.2% 0.036 105.8);
Tailwind
colors: {
  custom: {
    50: '#81806e',
    500: '#504f38',
    950: '#000000',
  },
}
SCSS
$custom: #504f38;
$custom-light: #81806e;
$custom-dark: #000000;
JSON
{
  "hex": "#504f38",
  "rgb": {
    "r": 80,
    "g": 79,
    "b": 56
  },
  "hsl": {
    "h": 57.5,
    "s": 17.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.4219,
    "c": 0.03599,
    "h": 105.8
  },
  "luminance": 0.07583
}

Semantic roles & 50–950 ramp

primary
#504F38
secondary
#646580
accent
#71BA6D
background
#F7F7F6
surface
#EEEEEC
border
#C9C9C7
text
#0A0A07
muted
#7C7C7A

Preview Lab

Preview with #504F38

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

Preview Lab → · Contrast checker → · Palette generator →

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