#4A771F#4A771F

#4A771F is a mid, vivid yellow-green. Relative luminance 0.147; OKLCH L 51.8% C 0.127 H 132.9°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#4A771F
RGBrgb(74, 119, 31)
HSLhsl(91, 59%, 29%)
HSVhsv(91, 74%, 47%)
CMYKcmyk(37.8%, 0%, 73.9%, 53.3%)
CIE-LABlab(45.29, -30.77, 41.28)
CIE-LCHlch(45.29, 51.48, 126.70°)
OKLaboklab(51.8% -0.0865 0.0931)
OKLCHoklch(51.8% 0.127 132.9)
XYZxyz(9.6680, 14.7480, 3.6333)
Luminance0.1475 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A771F #4C1F77
analogous
#76771F #4A771F #1F7720
triadic
#4A771F #1F4A77 #771F4A
tetradic
#4A771F #1F7677 #4C1F77 #77201F
square
#4A771F #1F7677 #4C1F77 #77201F
split-complementary
#4A771F #201F77 #771F76
monochromatic
#0F1806 #2C4612 #4A771F #68A82C #87CE43

Accessibility & contrast

On white

5.32
#4A771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#4A771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A771F
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A771F#FFFFFF#000000##FFFFFF
##4A771F1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D10
Deuteranopia (green-blind)
#766A27
Tritanopia (blue-blind)
#4A7266
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4a771f;
/* rgb */ color: rgb(74, 119, 31);
/* oklch */ color: oklch(51.8% 0.127 132.9);
Tailwind
colors: {
  custom: {
    50: '#809e61',
    500: '#4a771f',
    950: '#000000',
  },
}
SCSS
$custom: #4a771f;
$custom-light: #809e61;
$custom-dark: #000000;
JSON
{
  "hex": "#4a771f",
  "rgb": {
    "r": 74,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 90.682,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51798,
    "c": 0.1271,
    "h": 132.9
  },
  "luminance": 0.14748
}

Semantic roles & 50–950 ramp

primary
#4A771F
secondary
#7A47AB
accent
#46E296
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4A771F

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

Preview Lab → · Contrast checker → · Palette generator →

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