#4C812A#4C812A

#4C812A is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.7% C 0.132 H 135.4°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#4C812A
RGBrgb(76, 129, 42)
HSLhsl(97, 51%, 34%)
HSVhsv(97, 67%, 51%)
CMYKcmyk(41.1%, 0%, 67.4%, 49.4%)
CIE-LABlab(48.76, -33.68, 40.25)
CIE-LCHlch(48.76, 52.48, 129.92°)
OKLaboklab(54.7% -0.0936 0.0925)
OKLCHoklch(54.7% 0.132 135.4)
XYZxyz(11.2484, 17.4036, 4.9566)
Luminance0.1740 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C812A #5F2A81
analogous
#77812A #4C812A #2A8133
triadic
#4C812A #2A4C81 #812A4C
tetradic
#4C812A #2A7781 #5F2A81 #81332A
square
#4C812A #2A7781 #5F2A81 #81332A
split-complementary
#4C812A #332A81 #812A77
monochromatic
#16250C #31531B #4C812A #67AF39 #87CA5C

Accessibility & contrast

On white

4.69
#4C812A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#4C812A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C812A
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C812A#FFFFFF#000000##FFFFFF
##4C812A1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86771F
Deuteranopia (green-blind)
#7E7231
Tritanopia (blue-blind)
#4B7C6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4c812a;
/* rgb */ color: rgb(76, 129, 42);
/* oklch */ color: oklch(54.7% 0.132 135.4);
Tailwind
colors: {
  custom: {
    50: '#82a668',
    500: '#4c812a',
    950: '#000000',
  },
}
SCSS
$custom: #4c812a;
$custom-light: #82a668;
$custom-dark: #000000;
JSON
{
  "hex": "#4c812a",
  "rgb": {
    "r": 76,
    "g": 129,
    "b": 42
  },
  "hsl": {
    "h": 96.552,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.54697,
    "c": 0.13162,
    "h": 135.4
  },
  "luminance": 0.17404
}

Semantic roles & 50–950 ramp

primary
#4C812A
secondary
#8D57AF
accent
#4DDAA3
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4C812A

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

Preview Lab → · Contrast checker → · Palette generator →

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