#4D7E2A#4D7E2A

#4D7E2A is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 54.0% C 0.127 H 134.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#4D7E2A
RGBrgb(77, 126, 42)
HSLhsl(95, 50%, 33%)
HSVhsv(95, 67%, 49%)
CMYKcmyk(38.9%, 0%, 66.7%, 50.6%)
CIE-LABlab(47.84, -31.95, 39.26)
CIE-LCHlch(47.84, 50.62, 129.13°)
OKLaboklab(53.95% -0.089 0.0904)
OKLCHoklch(53.95% 0.127 134.5)
XYZxyz(10.9391, 16.6661, 4.8305)
Luminance0.1667 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7E2A #5B2A7E
analogous
#777E2A #4D7E2A #2A7E31
triadic
#4D7E2A #2A4D7E #7E2A4D
tetradic
#4D7E2A #2A777E #5B2A7E #7E312A
square
#4D7E2A #2A777E #5B2A7E #7E312A
split-complementary
#4D7E2A #312A7E #7E2A77
monochromatic
#15220B #31501B #4D7E2A #69AC39 #88C85A

Accessibility & contrast

On white

4.85
#4D7E2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#4D7E2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7E2A
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7E2A#FFFFFF#000000##FFFFFF
##4D7E2A1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83741F
Deuteranopia (green-blind)
#7C7031
Tritanopia (blue-blind)
#4C796D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4d7e2a;
/* rgb */ color: rgb(77, 126, 42);
/* oklch */ color: oklch(54.0% 0.127 134.5);
Tailwind
colors: {
  custom: {
    50: '#83a468',
    500: '#4d7e2a',
    950: '#000000',
  },
}
SCSS
$custom: #4d7e2a;
$custom-light: #83a468;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7e2a",
  "rgb": {
    "r": 77,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 95,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53952,
    "c": 0.12685,
    "h": 134.5
  },
  "luminance": 0.16667
}

Semantic roles & 50–950 ramp

primary
#4D7E2A
secondary
#8956AE
accent
#4EDAA0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4D7E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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