#4D7E12#4D7E12

#4D7E12 is a mid, vivid yellow-green. Relative luminance 0.165; OKLCH L 53.8% C 0.142 H 132.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#4D7E12
RGBrgb(77, 126, 18)
HSLhsl(87, 75%, 28%)
HSVhsv(87, 86%, 49%)
CMYKcmyk(38.9%, 0%, 85.7%, 50.6%)
CIE-LABlab(47.68, -33.57, 48.04)
CIE-LCHlch(47.68, 58.61, 124.95°)
OKLaboklab(53.77% -0.0952 0.1052)
OKLCHoklch(53.77% 0.142 132.2)
XYZxyz(10.6305, 16.5427, 3.2051)
Luminance0.1654 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7E12 #43127E
analogous
#7E7912 #4D7E12 #177E12
triadic
#4D7E12 #124D7E #7E124D
tetradic
#4D7E12 #127E79 #43127E #7E1217
square
#4D7E12 #127E79 #43127E #7E1217
split-complementary
#4D7E12 #12177E #79127E
monochromatic
#101B04 #2C480A #4D7E12 #6EB41A #8EE12A

Accessibility & contrast

On white

4.87
#4D7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#4D7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7E12
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7E12#FFFFFF#000000##FFFFFF
##4D7E121.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7D701F
Tritanopia (blue-blind)
#4E786B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4d7e12;
/* rgb */ color: rgb(77, 126, 18);
/* oklch */ color: oklch(53.8% 0.142 132.2);
Tailwind
colors: {
  custom: {
    50: '#84a45c',
    500: '#4d7e12',
    950: '#000000',
  },
}
SCSS
$custom: #4d7e12;
$custom-light: #84a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7e12",
  "rgb": {
    "r": 77,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 87.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53773,
    "c": 0.14185,
    "h": 132.2
  },
  "luminance": 0.16543
}

Semantic roles & 50–950 ramp

primary
#4D7E12
secondary
#7038B4
accent
#36F28B
background
#F8FAF5
surface
#EFF4E9
border
#CACEC5
text
#0B0F04
muted
#7C7F79

Preview Lab

Preview with #4D7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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