#4C771A#4C771A

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

Color values

HEX#4C771A
RGBrgb(76, 119, 26)
HSLhsl(88, 64%, 28%)
HSVhsv(88, 78%, 47%)
CMYKcmyk(36.1%, 0%, 78.2%, 53.3%)
CIE-LABlab(45.37, -30.34, 43.32)
CIE-LCHlch(45.37, 52.88, 125.00°)
OKLaboklab(51.88% -0.0858 0.0966)
OKLCHoklch(51.88% 0.129 131.6)
XYZxyz(9.7637, 14.8044, 3.3202)
Luminance0.1480 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C771A #451A77
analogous
#77731A #4C771A #1D771A
triadic
#4C771A #1A4C77 #771A4C
tetradic
#4C771A #1A7773 #451A77 #771A1D
square
#4C771A #1A7773 #451A77 #771A1D
split-complementary
#4C771A #1A1D77 #731A77
monochromatic
#101905 #2C450F #4C771A #6CA925 #8CD338

Accessibility & contrast

On white

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

On black

3.96
#4C771A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4C771A#FFFFFF#000000##FFFFFF
##4C771A1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D06
Deuteranopia (green-blind)
#776A23
Tritanopia (blue-blind)
#4D7265
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4c771a;
/* rgb */ color: rgb(76, 119, 26);
/* oklch */ color: oklch(51.9% 0.129 131.6);
Tailwind
colors: {
  custom: {
    50: '#829e5e',
    500: '#4c771a',
    950: '#000000',
  },
}
SCSS
$custom: #4c771a;
$custom-light: #829e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c771a",
  "rgb": {
    "r": 76,
    "g": 119,
    "b": 26
  },
  "hsl": {
    "h": 87.742,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51881,
    "c": 0.12921,
    "h": 131.6
  },
  "luminance": 0.14805
}

Semantic roles & 50–950 ramp

primary
#4C771A
secondary
#7241AC
accent
#41E78E
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4C771A

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

Preview Lab → · Contrast checker → · Palette generator →

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