#4C8C20#4C8C20

#4C8C20 is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.6% C 0.153 H 135.6°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#4C8C20
RGBrgb(76, 140, 32)
HSLhsl(96, 63%, 34%)
HSVhsv(96, 77%, 55%)
CMYKcmyk(45.7%, 0%, 77.1%, 45.1%)
CIE-LABlab(52.28, -39.25, 47.88)
CIE-LCHlch(52.28, 61.91, 129.34°)
OKLaboklab(57.55% -0.1095 0.1071)
OKLCHoklch(57.55% 0.153 135.6)
XYZxyz(12.6190, 20.3962, 4.6382)
Luminance0.2040 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8C20 #60208C
analogous
#828C20 #4C8C20 #208C2A
triadic
#4C8C20 #204C8C #8C204C
tetradic
#4C8C20 #20828C #60208C #8C2A20
square
#4C8C20 #20828C #60208C #8C2A20
split-complementary
#4C8C20 #2A208C #8C2082
monochromatic
#162809 #315A15 #4C8C20 #67BE2B #87D750

Accessibility & contrast

On white

4.13
#4C8C20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#4C8C20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8C20
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8C20#FFFFFF#000000##000000
##4C8C201.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#918008
Deuteranopia (green-blind)
#897B2B
Tritanopia (blue-blind)
#4A8777
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #4c8c20;
/* rgb */ color: rgb(76, 140, 32);
/* oklch */ color: oklch(57.6% 0.153 135.6);
Tailwind
colors: {
  custom: {
    50: '#84ae64',
    500: '#4c8c20',
    950: '#000000',
  },
}
SCSS
$custom: #4c8c20;
$custom-light: #84ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8c20",
  "rgb": {
    "r": 76,
    "g": 140,
    "b": 32
  },
  "hsl": {
    "h": 95.556,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57554,
    "c": 0.15313,
    "h": 135.6
  },
  "luminance": 0.20397
}

Semantic roles & 50–950 ramp

primary
#4C8C20
secondary
#8E4EBA
accent
#42E6A3
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8C20

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

Preview Lab → · Contrast checker → · Palette generator →

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