#4C7D1A#4C7D1A

#4C7D1A is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.5% C 0.137 H 132.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#4C7D1A
RGBrgb(76, 125, 26)
HSLhsl(90, 66%, 30%)
HSVhsv(90, 79%, 49%)
CMYKcmyk(39.2%, 0%, 79.2%, 51%)
CIE-LABlab(47.34, -33.09, 45.21)
CIE-LCHlch(47.34, 56.03, 126.20°)
OKLaboklab(53.49% -0.0933 0.1005)
OKLCHoklch(53.49% 0.137 132.9)
XYZxyz(10.5004, 16.2778, 3.5658)
Luminance0.1628 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7D1A #4B1A7D
analogous
#7D7D1A #4C7D1A #1B7D1A
triadic
#4C7D1A #1A4C7D #7D1A4C
tetradic
#4C7D1A #1A7D7D #4B1A7D #7D1A1B
square
#4C7D1A #1A7D7D #4B1A7D #7D1A1B
split-complementary
#4C7D1A #1A1B7D #7D1A7D
monochromatic
#0F1905 #2D4A0F #4C7D1A #6BB025 #89D63B

Accessibility & contrast

On white

4.93
#4C7D1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#4C7D1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7D1A
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7D1A#FFFFFF#000000##FFFFFF
##4C7D1A1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827302
Deuteranopia (green-blind)
#7C6F24
Tritanopia (blue-blind)
#4C786A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #4c7d1a;
/* rgb */ color: rgb(76, 125, 26);
/* oklch */ color: oklch(53.5% 0.137 132.9);
Tailwind
colors: {
  custom: {
    50: '#83a35f',
    500: '#4c7d1a',
    950: '#000000',
  },
}
SCSS
$custom: #4c7d1a;
$custom-light: #83a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7d1a",
  "rgb": {
    "r": 76,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 89.697,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53492,
    "c": 0.13715,
    "h": 132.9
  },
  "luminance": 0.16278
}

Semantic roles & 50–950 ramp

primary
#4C7D1A
secondary
#7942B1
accent
#3FE993
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C7D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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