#4C8B20#4C8B20

#4C8B20 is a mid, vivid yellow-green. Relative luminance 0.201; OKLCH L 57.3% C 0.152 H 135.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#4C8B20
RGBrgb(76, 139, 32)
HSLhsl(95, 63%, 34%)
HSVhsv(95, 77%, 55%)
CMYKcmyk(45.3%, 0%, 77%, 45.5%)
CIE-LABlab(51.96, -38.82, 47.56)
CIE-LCHlch(51.96, 61.40, 129.23°)
OKLaboklab(57.29% -0.1083 0.1064)
OKLCHoklch(57.29% 0.152 135.5)
XYZxyz(12.4735, 20.1053, 4.5897)
Luminance0.2011 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8B20 #5F208B
analogous
#818B20 #4C8B20 #208B29
triadic
#4C8B20 #204C8B #8B204C
tetradic
#4C8B20 #20818B #5F208B #8B2920
square
#4C8B20 #20818B #5F208B #8B2920
split-complementary
#4C8B20 #29208B #8B2081
monochromatic
#162809 #315915 #4C8B20 #67BD2B #87D64F

Accessibility & contrast

On white

4.18
#4C8B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#4C8B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8B20
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8B20#FFFFFF#000000##000000
##4C8B201.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F08
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#4A8677
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4c8b20;
/* rgb */ color: rgb(76, 139, 32);
/* oklch */ color: oklch(57.3% 0.152 135.5);
Tailwind
colors: {
  custom: {
    50: '#84ad64',
    500: '#4c8b20',
    950: '#000000',
  },
}
SCSS
$custom: #4c8b20;
$custom-light: #84ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8b20",
  "rgb": {
    "r": 76,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 95.327,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57287,
    "c": 0.15185,
    "h": 135.5
  },
  "luminance": 0.20106
}

Semantic roles & 50–950 ramp

primary
#4C8B20
secondary
#8D4DBA
accent
#42E6A2
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8B20

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

Preview Lab → · Contrast checker → · Palette generator →

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