#4D8012#4D8012

#4D8012 is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.3% C 0.144 H 132.5°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#4D8012
RGBrgb(77, 128, 18)
HSLhsl(88, 75%, 29%)
HSVhsv(88, 86%, 50%)
CMYKcmyk(39.8%, 0%, 85.9%, 49.8%)
CIE-LABlab(48.33, -34.47, 48.62)
CIE-LCHlch(48.33, 59.60, 125.33°)
OKLaboklab(54.31% -0.0976 0.1064)
OKLCHoklch(54.31% 0.144 132.5)
XYZxyz(10.8888, 17.0593, 3.2912)
Luminance0.1706 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D8012 #451280
analogous
#807C12 #4D8012 #168012
triadic
#4D8012 #124D80 #80124D
tetradic
#4D8012 #12807C #451280 #801216
square
#4D8012 #12807C #451280 #801216
split-complementary
#4D8012 #121680 #7C1280
monochromatic
#101B04 #2D4A0A #4D8012 #6DB61A #8DE12B

Accessibility & contrast

On white

4.76
#4D8012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#4D8012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D8012
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D8012#FFFFFF#000000##FFFFFF
##4D80121.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#7F7120
Tritanopia (blue-blind)
#4E7A6C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #4d8012;
/* rgb */ color: rgb(77, 128, 18);
/* oklch */ color: oklch(54.3% 0.144 132.5);
Tailwind
colors: {
  custom: {
    50: '#84a55c',
    500: '#4d8012',
    950: '#000000',
  },
}
SCSS
$custom: #4d8012;
$custom-light: #84a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d8012",
  "rgb": {
    "r": 77,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 87.818,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5431,
    "c": 0.14437,
    "h": 132.5
  },
  "luminance": 0.1706
}

Semantic roles & 50–950 ramp

primary
#4D8012
secondary
#7238B6
accent
#36F28D
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4D8012

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

Preview Lab → · Contrast checker → · Palette generator →

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