#4C8B28#4C8B28

#4C8B28 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.3% C 0.147 H 136.4°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#4C8B28
RGBrgb(76, 139, 40)
HSLhsl(98, 55%, 35%)
HSVhsv(98, 71%, 55%)
CMYKcmyk(45.3%, 0%, 71.2%, 45.5%)
CIE-LABlab(52.01, -38.23, 44.54)
CIE-LCHlch(52.01, 58.70, 130.64°)
OKLaboklab(57.35% -0.1062 0.1013)
OKLCHoklch(57.35% 0.147 136.4)
XYZxyz(12.5958, 20.1542, 5.2335)
Luminance0.2016 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8B28 #67288B
analogous
#7D8B28 #4C8B28 #288B36
triadic
#4C8B28 #284C8B #8B284C
tetradic
#4C8B28 #287D8B #67288B #8B3628
square
#4C8B28 #287D8B #67288B #8B3628
split-complementary
#4C8B28 #36288B #8B287D
monochromatic
#182C0D #325B1A #4C8B28 #66BB36 #87D05D

Accessibility & contrast

On white

4.17
#4C8B28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#4C8B28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8B28
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8B28#FFFFFF#000000##000000
##4C8B281.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F19
Deuteranopia (green-blind)
#877A31
Tritanopia (blue-blind)
#498677
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4c8b28;
/* rgb */ color: rgb(76, 139, 40);
/* oklch */ color: oklch(57.3% 0.147 136.4);
Tailwind
colors: {
  custom: {
    50: '#84ad68',
    500: '#4c8b28',
    950: '#000000',
  },
}
SCSS
$custom: #4c8b28;
$custom-light: #84ad68;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8b28",
  "rgb": {
    "r": 76,
    "g": 139,
    "b": 40
  },
  "hsl": {
    "h": 98.182,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.57349,
    "c": 0.14672,
    "h": 136.4
  },
  "luminance": 0.20155
}

Semantic roles & 50–950 ramp

primary
#4C8B28
secondary
#9459B6
accent
#49DFA8
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8B28

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

Preview Lab → · Contrast checker → · Palette generator →

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