#4A771C#4A771C

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

Color values

HEX#4A771C
RGBrgb(74, 119, 28)
HSLhsl(90, 62%, 29%)
HSVhsv(90, 76%, 47%)
CMYKcmyk(37.8%, 0%, 76.5%, 53.3%)
CIE-LABlab(45.27, -30.98, 42.44)
CIE-LCHlch(45.27, 52.54, 126.13°)
OKLaboklab(51.77% -0.0873 0.0951)
OKLCHoklch(51.77% 0.129 132.6)
XYZxyz(9.6303, 14.7329, 3.4347)
Luminance0.1473 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A771C #491C77
analogous
#77771C #4A771C #1D771C
triadic
#4A771C #1C4A77 #771C4A
tetradic
#4A771C #1C7777 #491C77 #771C1D
square
#4A771C #1C7777 #491C77 #771C1D
split-complementary
#4A771C #1C1D77 #771C77
monochromatic
#0F1906 #2B4510 #4A771C #69A928 #88D13C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A771C#FFFFFF#000000##FFFFFF
##4A771C1.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)
#7C6D0A
Deuteranopia (green-blind)
#766A25
Tritanopia (blue-blind)
#4B7265
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #4a771c;
/* rgb */ color: rgb(74, 119, 28);
/* oklch */ color: oklch(51.8% 0.129 132.6);
Tailwind
colors: {
  custom: {
    50: '#819e5f',
    500: '#4a771c',
    950: '#000000',
  },
}
SCSS
$custom: #4a771c;
$custom-light: #819e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4a771c",
  "rgb": {
    "r": 74,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 89.67,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51774,
    "c": 0.12909,
    "h": 132.6
  },
  "luminance": 0.14733
}

Semantic roles & 50–950 ramp

primary
#4A771C
secondary
#7744AB
accent
#43E593
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4A771C

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

Preview Lab → · Contrast checker → · Palette generator →

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