#4C8A20#4C8A20

#4C8A20 is a mid, vivid yellow-green. Relative luminance 0.198; OKLCH L 57.0% C 0.151 H 135.4°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#4C8A20
RGBrgb(76, 138, 32)
HSLhsl(95, 62%, 33%)
HSVhsv(95, 77%, 54%)
CMYKcmyk(44.9%, 0%, 76.8%, 45.9%)
CIE-LABlab(51.63, -38.40, 47.24)
CIE-LCHlch(51.63, 60.88, 129.11°)
OKLaboklab(57.02% -0.1072 0.1057)
OKLCHoklch(57.02% 0.151 135.4)
XYZxyz(12.3294, 19.8170, 4.5416)
Luminance0.1982 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8A20 #5E208A
analogous
#818A20 #4C8A20 #208A29
triadic
#4C8A20 #204C8A #8A204C
tetradic
#4C8A20 #20818A #5E208A #8A2920
square
#4C8A20 #20818A #5E208A #8A2920
split-complementary
#4C8A20 #29208A #8A2081
monochromatic
#152709 #315814 #4C8A20 #67BC2C #87D64E

Accessibility & contrast

On white

4.23
#4C8A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#4C8A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8A20
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8A20#FFFFFF#000000##000000
##4C8A201.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E09
Deuteranopia (green-blind)
#87792B
Tritanopia (blue-blind)
#4A8576
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #4c8a20;
/* rgb */ color: rgb(76, 138, 32);
/* oklch */ color: oklch(57.0% 0.151 135.4);
Tailwind
colors: {
  custom: {
    50: '#84ad64',
    500: '#4c8a20',
    950: '#000000',
  },
}
SCSS
$custom: #4c8a20;
$custom-light: #84ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8a20",
  "rgb": {
    "r": 76,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 95.094,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57019,
    "c": 0.15056,
    "h": 135.4
  },
  "luminance": 0.19818
}

Semantic roles & 50–950 ramp

primary
#4C8A20
secondary
#8C4DB9
accent
#42E5A2
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8A20

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

Preview Lab → · Contrast checker → · Palette generator →

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