#504D0F#504D0F

#504D0F is a dark, moderate yellow. Relative luminance 0.070; OKLCH L 41.1% C 0.080 H 106.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#504D0F
RGBrgb(80, 77, 15)
HSLhsl(57, 68%, 19%)
HSVhsv(57, 81%, 31%)
CMYKcmyk(0%, 3.7%, 81.3%, 68.6%)
CIE-LABlab(31.92, -6.91, 34.74)
CIE-LCHlch(31.92, 35.42, 101.25°)
OKLaboklab(41.07% -0.0227 0.0763)
OKLCHoklch(41.07% 0.08 106.6)
XYZxyz(6.0486, 7.0479, 1.4936)
Luminance0.0705 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#504D0F #0F1250
analogous
#502C0F #504D0F #32500F
triadic
#504D0F #0F504D #4D0F50
tetradic
#504D0F #0F502C #0F1250 #500F32
square
#504D0F #0F502C #0F1250 #500F32
split-complementary
#504D0F #0F3250 #2C0F50
monochromatic
#1A1905 #1C1B05 #504D0F #847F19 #B7B022

Accessibility & contrast

On white

8.72
#504D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#504D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #504D0F
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##504D0F#FFFFFF#000000##FFFFFF
##504D0F1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A04
Deuteranopia (green-blind)
#564C14
Tritanopia (blue-blind)
#564741
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #504d0f;
/* rgb */ color: rgb(80, 77, 15);
/* oklch */ color: oklch(41.1% 0.080 106.6);
Tailwind
colors: {
  custom: {
    50: '#847e53',
    500: '#504d0f',
    950: '#000000',
  },
}
SCSS
$custom: #504d0f;
$custom-light: #847e53;
$custom-dark: #000000;
JSON
{
  "hex": "#504d0f",
  "rgb": {
    "r": 80,
    "g": 77,
    "b": 15
  },
  "hsl": {
    "h": 57.231,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.4107,
    "c": 0.07965,
    "h": 106.6
  },
  "luminance": 0.07048
}

Semantic roles & 50–950 ramp

primary
#504D0F
secondary
#31358A
accent
#45EB3D
background
#F8F7F4
surface
#EFEEE7
border
#CAC9C3
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #504D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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