#4D5012#4D5012

#4D5012 is a dark, moderate yellow. Relative luminance 0.074; OKLCH L 41.6% C 0.082 H 112.2°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#4D5012
RGBrgb(77, 80, 18)
HSLhsl(63, 63%, 19%)
HSVhsv(63, 78%, 31%)
CMYKcmyk(3.7%, 0%, 77.5%, 68.6%)
CIE-LABlab(32.61, -10.02, 34.07)
CIE-LCHlch(32.61, 35.52, 106.38°)
OKLaboklab(41.56% -0.0309 0.0757)
OKLCHoklch(41.56% 0.082 112.2)
XYZxyz(6.0386, 7.3589, 1.6745)
Luminance0.0736 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D5012 #151250
analogous
#503412 #4D5012 #2E5012
triadic
#4D5012 #124D50 #50124D
tetradic
#4D5012 #125034 #151250 #50122E
square
#4D5012 #125034 #151250 #50122E
split-complementary
#4D5012 #122E50 #341250
monochromatic
#181906 #1D1E07 #4D5012 #7D821D #ADB428

Accessibility & contrast

On white

8.50
#4D5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#4D5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D5012
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D5012#FFFFFF#000000##FFFFFF
##4D50121.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C07
Deuteranopia (green-blind)
#574D17
Tritanopia (blue-blind)
#534B44
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4d5012;
/* rgb */ color: rgb(77, 80, 18);
/* oklch */ color: oklch(41.6% 0.082 112.2);
Tailwind
colors: {
  custom: {
    50: '#818055',
    500: '#4d5012',
    950: '#000000',
  },
}
SCSS
$custom: #4d5012;
$custom-light: #818055;
$custom-dark: #000000;
JSON
{
  "hex": "#4d5012",
  "rgb": {
    "r": 77,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 62.903,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.41562,
    "c": 0.08176,
    "h": 112.2
  },
  "luminance": 0.07359
}

Semantic roles & 50–950 ramp

primary
#4D5012
secondary
#393589
accent
#41E649
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #4D5012

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

Preview Lab → · Contrast checker → · Palette generator →

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