#4D4812#4D4812

#4D4812 is a dark, moderate yellow. Relative luminance 0.063; OKLCH L 39.5% C 0.073 H 104.0°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4D4812
RGBrgb(77, 72, 18)
HSLhsl(55, 62%, 19%)
HSVhsv(55, 77%, 30%)
CMYKcmyk(0%, 6.5%, 76.6%, 69.8%)
CIE-LABlab(30.05, -5.25, 31.55)
CIE-LCHlch(30.05, 31.99, 99.44°)
OKLaboklab(39.52% -0.0175 0.0704)
OKLCHoklch(39.52% 0.073 104)
XYZxyz(5.4873, 6.2564, 1.4907)
Luminance0.0626 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D4812 #12174D
analogous
#4D2A12 #4D4812 #344D12
triadic
#4D4812 #124D48 #48124D
tetradic
#4D4812 #124D2A #12174D #4D1234
square
#4D4812 #124D2A #12174D #4D1234
split-complementary
#4D4812 #12344D #2A124D
monochromatic
#191706 #1B1A06 #4D4812 #7F761E #B0A529

Accessibility & contrast

On white

9.33
#4D4812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4D4812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D4812
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D4812#FFFFFF#000000##FFFFFF
##4D48121.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F450A
Deuteranopia (green-blind)
#514816
Tritanopia (blue-blind)
#53433D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4d4812;
/* rgb */ color: rgb(77, 72, 18);
/* oklch */ color: oklch(39.5% 0.073 104.0);
Tailwind
colors: {
  custom: {
    50: '#817a54',
    500: '#4d4812',
    950: '#000000',
  },
}
SCSS
$custom: #4d4812;
$custom-light: #817a54;
$custom-dark: #000000;
JSON
{
  "hex": "#4d4812",
  "rgb": {
    "r": 77,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 54.915,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.39519,
    "c": 0.07251,
    "h": 104
  },
  "luminance": 0.06256
}

Semantic roles & 50–950 ramp

primary
#4D4812
secondary
#353C86
accent
#50E543
background
#F8F7F4
surface
#EFEDE8
border
#CAC8C4
text
#0B0903
muted
#7C7B78

Preview Lab

Preview with #4D4812

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

Preview Lab → · Contrast checker → · Palette generator →

#4D4812 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva