#4C771F#4C771F

#4C771F is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 51.9% C 0.126 H 132.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#4C771F
RGBrgb(76, 119, 31)
HSLhsl(89, 59%, 29%)
HSVhsv(89, 74%, 47%)
CMYKcmyk(36.1%, 0%, 73.9%, 53.3%)
CIE-LABlab(45.40, -30.00, 41.43)
CIE-LCHlch(45.40, 51.15, 125.91°)
OKLaboklab(51.92% -0.0845 0.0934)
OKLCHoklch(51.92% 0.126 132.1)
XYZxyz(9.8245, 14.8287, 3.6406)
Luminance0.1483 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C771F #4A1F77
analogous
#77761F #4C771F #20771F
triadic
#4C771F #1F4C77 #771F4C
tetradic
#4C771F #1F7776 #4A1F77 #771F20
square
#4C771F #1F7776 #4A1F77 #771F20
split-complementary
#4C771F #1F2077 #761F77
monochromatic
#101806 #2D4612 #4C771F #6BA82C #8ACE43

Accessibility & contrast

On white

5.30
#4C771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #4C771F
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C771F#FFFFFF#000000##FFFFFF
##4C771F1.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c771f;
/* rgb */ color: rgb(76, 119, 31);
/* oklch */ color: oklch(51.9% 0.126 132.1);
Tailwind
colors: {
  custom: {
    50: '#829e61',
    500: '#4c771f',
    950: '#000000',
  },
}
SCSS
$custom: #4c771f;
$custom-light: #829e61;
$custom-dark: #000000;
JSON
{
  "hex": "#4c771f",
  "rgb": {
    "r": 76,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 89.318,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51919,
    "c": 0.12598,
    "h": 132.1
  },
  "luminance": 0.14829
}

Semantic roles & 50–950 ramp

primary
#4C771F
secondary
#7847AB
accent
#46E292
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4C771F

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

Preview Lab → · Contrast checker → · Palette generator →

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