#4C771B#4C771B

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

Color values

HEX#4C771B
RGBrgb(76, 119, 27)
HSLhsl(88, 63%, 29%)
HSVhsv(88, 77%, 47%)
CMYKcmyk(36.1%, 0%, 77.3%, 53.3%)
CIE-LABlab(45.37, -30.27, 42.96)
CIE-LCHlch(45.37, 52.55, 125.17°)
OKLaboklab(51.89% -0.0856 0.096)
OKLCHoklch(51.89% 0.129 131.7)
XYZxyz(9.7750, 14.8089, 3.3801)
Luminance0.1481 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C771B #461B77
analogous
#77741B #4C771B #1E771B
triadic
#4C771B #1B4C77 #771B4C
tetradic
#4C771B #1B7774 #461B77 #771B1E
square
#4C771B #1B7774 #461B77 #771B1E
split-complementary
#4C771B #1B1E77 #741B77
monochromatic
#101906 #2C4510 #4C771B #6CA926 #8BD23A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C771B#FFFFFF#000000##FFFFFF
##4C771B1.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)
#7C6D08
Deuteranopia (green-blind)
#776A24
Tritanopia (blue-blind)
#4D7265
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4c771b;
/* rgb */ color: rgb(76, 119, 27);
/* oklch */ color: oklch(51.9% 0.129 131.7);
Tailwind
colors: {
  custom: {
    50: '#829e5f',
    500: '#4c771b',
    950: '#000000',
  },
}
SCSS
$custom: #4c771b;
$custom-light: #829e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c771b",
  "rgb": {
    "r": 76,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 88.043,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51888,
    "c": 0.1286,
    "h": 131.7
  },
  "luminance": 0.14809
}

Semantic roles & 50–950 ramp

primary
#4C771B
secondary
#7342AB
accent
#42E68F
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4C771B

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

Preview Lab → · Contrast checker → · Palette generator →

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