#4C8D2A#4C8D2A

#4C8D2A is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 57.9% C 0.148 H 136.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#4C8D2A
RGBrgb(76, 141, 42)
HSLhsl(99, 54%, 36%)
HSVhsv(99, 70%, 55%)
CMYKcmyk(46.1%, 0%, 70.2%, 44.7%)
CIE-LABlab(52.68, -38.92, 44.41)
CIE-LCHlch(52.68, 59.05, 131.23°)
OKLaboklab(57.9% -0.1079 0.1013)
OKLCHoklch(57.9% 0.148 136.8)
XYZxyz(12.9229, 20.7526, 5.5147)
Luminance0.2075 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8D2A #6B2A8D
analogous
#7D8D2A #4C8D2A #2A8D39
triadic
#4C8D2A #2A4C8D #8D2A4C
tetradic
#4C8D2A #2A7D8D #6B2A8D #8D392A
square
#4C8D2A #2A7D8D #6B2A8D #8D392A
split-complementary
#4C8D2A #392A8D #8D2A7D
monochromatic
#192F0E #335E1C #4C8D2A #65BC38 #87D061

Accessibility & contrast

On white

4.08
#4C8D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#4C8D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8D2A
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8D2A#FFFFFF#000000##000000
##4C8D2A1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#92811B
Deuteranopia (green-blind)
#897C33
Tritanopia (blue-blind)
#498879
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4c8d2a;
/* rgb */ color: rgb(76, 141, 42);
/* oklch */ color: oklch(57.9% 0.148 136.8);
Tailwind
colors: {
  custom: {
    50: '#84af69',
    500: '#4c8d2a',
    950: '#000000',
  },
}
SCSS
$custom: #4c8d2a;
$custom-light: #84af69;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8d2a",
  "rgb": {
    "r": 76,
    "g": 141,
    "b": 42
  },
  "hsl": {
    "h": 99.394,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57901,
    "c": 0.14796,
    "h": 136.8
  },
  "luminance": 0.20753
}

Semantic roles & 50–950 ramp

primary
#4C8D2A
secondary
#975DB6
accent
#4ADDAB
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1007
muted
#7C7F7A

Preview Lab

Preview with #4C8D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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