#4A771A#4A771A

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

Color values

HEX#4A771A
RGBrgb(74, 119, 26)
HSLhsl(89, 64%, 28%)
HSVhsv(89, 78%, 47%)
CMYKcmyk(37.8%, 0%, 78.2%, 53.3%)
CIE-LABlab(45.25, -31.11, 43.17)
CIE-LCHlch(45.25, 53.22, 125.78°)
OKLaboklab(51.76% -0.0878 0.0963)
OKLCHoklch(51.76% 0.13 132.4)
XYZxyz(9.6072, 14.7237, 3.3128)
Luminance0.1472 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A771A #471A77
analogous
#77751A #4A771A #1B771A
triadic
#4A771A #1A4A77 #771A4A
tetradic
#4A771A #1A7775 #471A77 #771A1B
square
#4A771A #1A7775 #471A77 #771A1B
split-complementary
#4A771A #1A1B77 #751A77
monochromatic
#101905 #2B450F #4A771A #69A925 #88D338

Accessibility & contrast

On white

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

On black

3.94
#4A771A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4A771A#FFFFFF#000000##FFFFFF
##4A771A1.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a771a;
/* rgb */ color: rgb(74, 119, 26);
/* oklch */ color: oklch(51.8% 0.130 132.4);
Tailwind
colors: {
  custom: {
    50: '#819e5e',
    500: '#4a771a',
    950: '#000000',
  },
}
SCSS
$custom: #4a771a;
$custom-light: #819e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a771a",
  "rgb": {
    "r": 74,
    "g": 119,
    "b": 26
  },
  "hsl": {
    "h": 89.032,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5176,
    "c": 0.13033,
    "h": 132.4
  },
  "luminance": 0.14724
}

Semantic roles & 50–950 ramp

primary
#4A771A
secondary
#7541AC
accent
#41E791
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4A771A

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

Preview Lab → · Contrast checker → · Palette generator →

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