#4D7E2F#4D7E2F

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

Color values

HEX#4D7E2F
RGBrgb(77, 126, 47)
HSLhsl(97, 46%, 34%)
HSVhsv(97, 63%, 49%)
CMYKcmyk(38.9%, 0%, 62.7%, 50.6%)
CIE-LABlab(47.89, -31.45, 36.98)
CIE-LCHlch(47.89, 48.54, 130.38°)
OKLaboklab(54.01% -0.0872 0.0862)
OKLCHoklch(54.01% 0.123 135.4)
XYZxyz(11.0343, 16.7042, 5.3316)
Luminance0.1671 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7E2F #602F7E
analogous
#757E2F #4D7E2F #2F7E39
triadic
#4D7E2F #2F4D7E #7E2F4D
tetradic
#4D7E2F #2F757E #602F7E #7E392F
square
#4D7E2F #2F757E #602F7E #7E392F
split-complementary
#4D7E2F #392F7E #7E2F75
monochromatic
#17250E #32511E #4D7E2F #68AB40 #88C563

Accessibility & contrast

On white

4.84
#4D7E2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#4D7E2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7E2F
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7E2F#FFFFFF#000000##FFFFFF
##4D7E2F1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827426
Deuteranopia (green-blind)
#7C7035
Tritanopia (blue-blind)
#4C796D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4d7e2f;
/* rgb */ color: rgb(77, 126, 47);
/* oklch */ color: oklch(54.0% 0.123 135.4);
Tailwind
colors: {
  custom: {
    50: '#82a46b',
    500: '#4d7e2f',
    950: '#000000',
  },
}
SCSS
$custom: #4d7e2f;
$custom-light: #82a46b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7e2f",
  "rgb": {
    "r": 77,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 97.215,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.54008,
    "c": 0.12261,
    "h": 135.4
  },
  "luminance": 0.16705
}

Semantic roles & 50–950 ramp

primary
#4D7E2F
secondary
#8E5DAC
accent
#52D5A4
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F07
muted
#7C7F7A

Preview Lab

Preview with #4D7E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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