#504E1F#504E1F

#504E1F is a dark, moderate yellow. Relative luminance 0.073; OKLCH L 41.5% C 0.067 H 106.7°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#504E1F
RGBrgb(80, 78, 31)
HSLhsl(58, 44%, 22%)
HSVhsv(58, 61%, 31%)
CMYKcmyk(0%, 2.5%, 61.2%, 68.6%)
CIE-LABlab(32.38, -6.38, 27.60)
CIE-LCHlch(32.38, 28.33, 103.02°)
OKLaboklab(41.48% -0.0193 0.0641)
OKLCHoklch(41.48% 0.067 106.7)
XYZxyz(6.2802, 7.2534, 2.3653)
Luminance0.0725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504E1F #1F2150
analogous
#50361F #504E1F #3A501F
triadic
#504E1F #1F504E #4E1F50
tetradic
#504E1F #1F5036 #1F2150 #501F3A
square
#504E1F #1F5036 #1F2150 #501F3A
split-complementary
#504E1F #1F3A50 #361F50
monochromatic
#161609 #24230E #504E1F #7C7930 #A8A441

Accessibility & contrast

On white

8.57
#504E1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#504E1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504E1F
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504E1F#FFFFFF#000000##FFFFFF
##504E1F1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544B1A
Deuteranopia (green-blind)
#554D21
Tritanopia (blue-blind)
#564944
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #504e1f;
/* rgb */ color: rgb(80, 78, 31);
/* oklch */ color: oklch(41.5% 0.067 106.7);
Tailwind
colors: {
  custom: {
    50: '#837f5c',
    500: '#504e1f',
    950: '#000000',
  },
}
SCSS
$custom: #504e1f;
$custom-light: #837f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#504e1f",
  "rgb": {
    "r": 80,
    "g": 78,
    "b": 31
  },
  "hsl": {
    "h": 57.551,
    "s": 44.144,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41483,
    "c": 0.06695,
    "h": 106.7
  },
  "luminance": 0.07253
}

Semantic roles & 50–950 ramp

primary
#504E1F
secondary
#464985
accent
#59D454
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A04
muted
#7C7C79

Preview Lab

Preview with #504E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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