#4C7C1A#4C7C1A

#4C7C1A is a mid, vivid yellow-green. Relative luminance 0.160; OKLCH L 53.2% C 0.136 H 132.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#4C7C1A
RGBrgb(76, 124, 26)
HSLhsl(89, 65%, 29%)
HSVhsv(89, 79%, 49%)
CMYKcmyk(38.7%, 0%, 79%, 51.4%)
CIE-LABlab(47.01, -32.63, 44.90)
CIE-LCHlch(47.01, 55.51, 126.01°)
OKLaboklab(53.22% -0.0921 0.0999)
OKLCHoklch(53.22% 0.136 132.7)
XYZxyz(10.3745, 16.0259, 3.5238)
Luminance0.1603 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7C1A #4A1A7C
analogous
#7C7B1A #4C7C1A #1B7C1A
triadic
#4C7C1A #1A4C7C #7C1A4C
tetradic
#4C7C1A #1A7C7B #4A1A7C #7C1A1B
square
#4C7C1A #1A7C7B #4A1A7C #7C1A1B
split-complementary
#4C7C1A #1A1B7C #7B1A7C
monochromatic
#101905 #2D490F #4C7C1A #6BAF25 #8AD63B

Accessibility & contrast

On white

4.99
#4C7C1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#4C7C1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7C1A
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7C1A#FFFFFF#000000##FFFFFF
##4C7C1A1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817203
Deuteranopia (green-blind)
#7B6E24
Tritanopia (blue-blind)
#4D776A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4c7c1a;
/* rgb */ color: rgb(76, 124, 26);
/* oklch */ color: oklch(53.2% 0.136 132.7);
Tailwind
colors: {
  custom: {
    50: '#83a25f',
    500: '#4c7c1a',
    950: '#000000',
  },
}
SCSS
$custom: #4c7c1a;
$custom-light: #83a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7c1a",
  "rgb": {
    "r": 76,
    "g": 124,
    "b": 26
  },
  "hsl": {
    "h": 89.388,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53223,
    "c": 0.13584,
    "h": 132.7
  },
  "luminance": 0.16026
}

Semantic roles & 50–950 ramp

primary
#4C7C1A
secondary
#7842B0
accent
#40E892
background
#F8FAF5
surface
#EFF3EA
border
#CACDC6
text
#0B0F05
muted
#7C7F79

Preview Lab

Preview with #4C7C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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