#4D7E1F#4D7E1F

#4D7E1F is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.9% C 0.135 H 133.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#4D7E1F
RGBrgb(77, 126, 31)
HSLhsl(91, 61%, 31%)
HSVhsv(91, 75%, 49%)
CMYKcmyk(38.9%, 0%, 75.4%, 50.6%)
CIE-LABlab(47.75, -32.84, 43.80)
CIE-LCHlch(47.75, 54.75, 126.86°)
OKLaboklab(53.85% -0.0923 0.0984)
OKLCHoklch(53.85% 0.135 133.2)
XYZxyz(10.7686, 16.5979, 3.9324)
Luminance0.1660 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7E1F #501F7E
analogous
#7C7E1F #4D7E1F #1F7E20
triadic
#4D7E1F #1F4D7E #7E1F4D
tetradic
#4D7E1F #1F7C7E #501F7E #7E201F
square
#4D7E1F #1F7C7E #501F7E #7E201F
split-complementary
#4D7E1F #201F7E #7E1F7C
monochromatic
#111C07 #2F4D13 #4D7E1F #6BAF2B #89D146

Accessibility & contrast

On white

4.86
#4D7E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#4D7E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7E1F
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7E1F#FFFFFF#000000##FFFFFF
##4D7E1F1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83740D
Deuteranopia (green-blind)
#7D7028
Tritanopia (blue-blind)
#4D796C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #4d7e1f;
/* rgb */ color: rgb(77, 126, 31);
/* oklch */ color: oklch(53.9% 0.135 133.2);
Tailwind
colors: {
  custom: {
    50: '#83a462',
    500: '#4d7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #4d7e1f;
$custom-light: #83a462;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7e1f",
  "rgb": {
    "r": 77,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 90.947,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53853,
    "c": 0.13489,
    "h": 133.2
  },
  "luminance": 0.16598
}

Semantic roles & 50–950 ramp

primary
#4D7E1F
secondary
#7E48B1
accent
#44E496
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4D7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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