#4D771F#4D771F

#4D771F is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 52.0% C 0.125 H 131.8°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#4D771F
RGBrgb(77, 119, 31)
HSLhsl(89, 59%, 29%)
HSVhsv(89, 74%, 47%)
CMYKcmyk(35.3%, 0%, 73.9%, 53.3%)
CIE-LABlab(45.46, -29.61, 41.50)
CIE-LCHlch(45.46, 50.98, 125.50°)
OKLaboklab(51.98% -0.0835 0.0935)
OKLCHoklch(51.98% 0.125 131.8)
XYZxyz(9.9046, 14.8700, 3.6444)
Luminance0.1487 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D771F #491F77
analogous
#77751F #4D771F #21771F
triadic
#4D771F #1F4D77 #771F4D
tetradic
#4D771F #1F7775 #491F77 #771F21
square
#4D771F #1F7775 #491F77 #771F21
split-complementary
#4D771F #1F2177 #751F77
monochromatic
#101806 #2E4612 #4D771F #6CA82C #8BCE43

Accessibility & contrast

On white

5.28
#4D771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#4D771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D771F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D771F#FFFFFF#000000##FFFFFF
##4D771F1.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E10
Deuteranopia (green-blind)
#776A27
Tritanopia (blue-blind)
#4E7266
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4d771f;
/* rgb */ color: rgb(77, 119, 31);
/* oklch */ color: oklch(52.0% 0.125 131.8);
Tailwind
colors: {
  custom: {
    50: '#829e61',
    500: '#4d771f',
    950: '#000000',
  },
}
SCSS
$custom: #4d771f;
$custom-light: #829e61;
$custom-dark: #000000;
JSON
{
  "hex": "#4d771f",
  "rgb": {
    "r": 77,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 88.636,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51981,
    "c": 0.12541,
    "h": 131.8
  },
  "luminance": 0.1487
}

Semantic roles & 50–950 ramp

primary
#4D771F
secondary
#7747AB
accent
#46E290
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4D771F

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

Preview Lab → · Contrast checker → · Palette generator →

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