#4C8D20#4C8D20

#4C8D20 is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 57.8% C 0.154 H 135.8°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#4C8D20
RGBrgb(76, 141, 32)
HSLhsl(96, 63%, 34%)
HSVhsv(96, 77%, 55%)
CMYKcmyk(46.1%, 0%, 77.3%, 44.7%)
CIE-LABlab(52.61, -39.67, 48.20)
CIE-LCHlch(52.61, 62.42, 129.45°)
OKLaboklab(57.82% -0.1106 0.1077)
OKLCHoklch(57.82% 0.154 135.8)
XYZxyz(12.7658, 20.6898, 4.6871)
Luminance0.2069 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8D20 #61208D
analogous
#838D20 #4C8D20 #208D2B
triadic
#4C8D20 #204C8D #8D204C
tetradic
#4C8D20 #20838D #61208D #8D2B20
square
#4C8D20 #20838D #61208D #8D2B20
split-complementary
#4C8D20 #2B208D #8D2083
monochromatic
#162909 #315B15 #4C8D20 #67BF2B #87D750

Accessibility & contrast

On white

4.09
#4C8D20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#4C8D20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8D20
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8D20#FFFFFF#000000##000000
##4C8D201.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#928107
Deuteranopia (green-blind)
#8A7C2B
Tritanopia (blue-blind)
#4A8878
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4c8d20;
/* rgb */ color: rgb(76, 141, 32);
/* oklch */ color: oklch(57.8% 0.154 135.8);
Tailwind
colors: {
  custom: {
    50: '#84af64',
    500: '#4c8d20',
    950: '#000000',
  },
}
SCSS
$custom: #4c8d20;
$custom-light: #84af64;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8d20",
  "rgb": {
    "r": 76,
    "g": 141,
    "b": 32
  },
  "hsl": {
    "h": 95.78,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57822,
    "c": 0.1544,
    "h": 135.8
  },
  "luminance": 0.20691
}

Semantic roles & 50–950 ramp

primary
#4C8D20
secondary
#8F4EBA
accent
#42E6A4
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8D20

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

Preview Lab → · Contrast checker → · Palette generator →

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