#4C8E28#4C8E28

#4C8E28 is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.2% C 0.151 H 136.7°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#4C8E28
RGBrgb(76, 142, 40)
HSLhsl(99, 56%, 36%)
HSVhsv(99, 72%, 56%)
CMYKcmyk(46.5%, 0%, 71.8%, 44.3%)
CIE-LABlab(52.99, -39.51, 45.55)
CIE-LCHlch(52.99, 60.30, 130.93°)
OKLaboklab(58.15% -0.1096 0.1034)
OKLCHoklch(58.15% 0.151 136.7)
XYZxyz(13.0361, 21.0349, 5.3803)
Luminance0.2104 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8E28 #6A288E
analogous
#7F8E28 #4C8E28 #288E37
triadic
#4C8E28 #284C8E #8E284C
tetradic
#4C8E28 #287F8E #6A288E #8E3728
square
#4C8E28 #287F8E #6A288E #8E3728
split-complementary
#4C8E28 #37288E #8E287F
monochromatic
#192F0D #325E1B #4C8E28 #66BE35 #87D25F

Accessibility & contrast

On white

4.03
#4C8E28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#4C8E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8E28
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8E28#FFFFFF#000000##000000
##4C8E281.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#938218
Deuteranopia (green-blind)
#8A7C32
Tritanopia (blue-blind)
#49897A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #4c8e28;
/* rgb */ color: rgb(76, 142, 40);
/* oklch */ color: oklch(58.2% 0.151 136.7);
Tailwind
colors: {
  custom: {
    50: '#84af68',
    500: '#4c8e28',
    950: '#000000',
  },
}
SCSS
$custom: #4c8e28;
$custom-light: #84af68;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8e28",
  "rgb": {
    "r": 76,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 98.824,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.58151,
    "c": 0.15067,
    "h": 136.7
  },
  "luminance": 0.21036
}

Semantic roles & 50–950 ramp

primary
#4C8E28
secondary
#975BB7
accent
#48DFAA
background
#F8FAF6
surface
#F0F5EB
border
#CBCFC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8E28

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

Preview Lab → · Contrast checker → · Palette generator →

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