#4C8E20#4C8E20

#4C8E20 is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.1% C 0.156 H 135.9°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#4C8E20
RGBrgb(76, 142, 32)
HSLhsl(96, 63%, 34%)
HSVhsv(96, 77%, 56%)
CMYKcmyk(46.5%, 0%, 77.5%, 44.3%)
CIE-LABlab(52.93, -40.08, 48.51)
CIE-LCHlch(52.93, 62.93, 129.57°)
OKLaboklab(58.09% -0.1117 0.1084)
OKLCHoklch(58.09% 0.156 135.9)
XYZxyz(12.9139, 20.9860, 4.7365)
Luminance0.2099 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8E20 #62208E
analogous
#838E20 #4C8E20 #208E2B
triadic
#4C8E20 #204C8E #8E204C
tetradic
#4C8E20 #20838E #62208E #8E2B20
square
#4C8E20 #20838E #62208E #8E2B20
split-complementary
#4C8E20 #2B208E #8E2083
monochromatic
#172A09 #315C15 #4C8E20 #67C02B #87D851

Accessibility & contrast

On white

4.04
#4C8E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#4C8E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8E20
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8E20#FFFFFF#000000##000000
##4C8E201.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938206
Deuteranopia (green-blind)
#8A7C2C
Tritanopia (blue-blind)
#498979
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4c8e20;
/* rgb */ color: rgb(76, 142, 32);
/* oklch */ color: oklch(58.1% 0.156 135.9);
Tailwind
colors: {
  custom: {
    50: '#84af64',
    500: '#4c8e20',
    950: '#000000',
  },
}
SCSS
$custom: #4c8e20;
$custom-light: #84af64;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8e20",
  "rgb": {
    "r": 76,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 96,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5809,
    "c": 0.15567,
    "h": 135.9
  },
  "luminance": 0.20987
}

Semantic roles & 50–950 ramp

primary
#4C8E20
secondary
#904FBB
accent
#42E6A4
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8E20

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

Preview Lab → · Contrast checker → · Palette generator →

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