#4D7312#4D7312

#4D7312 is a mid, vivid yellow-green. Relative luminance 0.139; OKLCH L 50.8% C 0.128 H 129.7°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#4D7312
RGBrgb(77, 115, 18)
HSLhsl(84, 73%, 26%)
HSVhsv(84, 84%, 45%)
CMYKcmyk(33%, 0%, 84.3%, 54.9%)
CIE-LABlab(44.06, -28.49, 44.80)
CIE-LCHlch(44.06, 53.09, 122.46°)
OKLaboklab(50.82% -0.0815 0.0983)
OKLCHoklch(50.82% 0.128 129.7)
XYZxyz(9.3005, 13.8826, 2.7617)
Luminance0.1388 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7312 #381273
analogous
#736812 #4D7312 #1C7312
triadic
#4D7312 #124D73 #73124D
tetradic
#4D7312 #127368 #381273 #73121C
square
#4D7312 #127368 #381273 #73121C
split-complementary
#4D7312 #121C73 #681273
monochromatic
#121A04 #2A3E0A #4D7312 #70A81A #94DD23

Accessibility & contrast

On white

5.56
#4D7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#4D7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7312
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7312#FFFFFF#000000##FFFFFF
##4D73121.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#74671D
Tritanopia (blue-blind)
#4F6E61
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4d7312;
/* rgb */ color: rgb(77, 115, 18);
/* oklch */ color: oklch(50.8% 0.128 129.7);
Tailwind
colors: {
  custom: {
    50: '#839b5a',
    500: '#4d7312',
    950: '#000000',
  },
}
SCSS
$custom: #4d7312;
$custom-light: #839b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7312",
  "rgb": {
    "r": 77,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 83.505,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.50822,
    "c": 0.1277,
    "h": 129.7
  },
  "luminance": 0.13883
}

Semantic roles & 50–950 ramp

primary
#4D7312
secondary
#6437AA
accent
#38F080
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4D7312

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

Preview Lab → · Contrast checker → · Palette generator →

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