#4C7A1A#4C7A1A

#4C7A1A is a mid, vivid yellow-green. Relative luminance 0.155; OKLCH L 52.7% C 0.133 H 132.3°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#4C7A1A
RGBrgb(76, 122, 26)
HSLhsl(89, 65%, 29%)
HSVhsv(89, 79%, 48%)
CMYKcmyk(37.7%, 0%, 78.7%, 52.2%)
CIE-LABlab(46.35, -31.72, 44.27)
CIE-LCHlch(46.35, 54.46, 125.62°)
OKLaboklab(52.69% -0.0896 0.0986)
OKLCHoklch(52.69% 0.133 132.3)
XYZxyz(10.1264, 15.5297, 3.4411)
Luminance0.1553 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7A1A #481A7A
analogous
#7A781A #4C7A1A #1C7A1A
triadic
#4C7A1A #1A4C7A #7A1A4C
tetradic
#4C7A1A #1A7A78 #481A7A #7A1A1C
square
#4C7A1A #1A7A78 #481A7A #7A1A1C
split-complementary
#4C7A1A #1A1C7A #781A7A
monochromatic
#101905 #2D480F #4C7A1A #6BAC25 #8AD539

Accessibility & contrast

On white

5.11
#4C7A1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#4C7A1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7A1A
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7A1A#FFFFFF#000000##FFFFFF
##4C7A1A1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7004
Deuteranopia (green-blind)
#796D24
Tritanopia (blue-blind)
#4D7568
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4c7a1a;
/* rgb */ color: rgb(76, 122, 26);
/* oklch */ color: oklch(52.7% 0.133 132.3);
Tailwind
colors: {
  custom: {
    50: '#82a15f',
    500: '#4c7a1a',
    950: '#000000',
  },
}
SCSS
$custom: #4c7a1a;
$custom-light: #82a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7a1a",
  "rgb": {
    "r": 76,
    "g": 122,
    "b": 26
  },
  "hsl": {
    "h": 88.75,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52686,
    "c": 0.13319,
    "h": 132.3
  },
  "luminance": 0.1553
}

Semantic roles & 50–950 ramp

primary
#4C7A1A
secondary
#7641AE
accent
#40E890
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4C7A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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