#4C8128#4C8128

#4C8128 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.7% C 0.133 H 135.1°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#4C8128
RGBrgb(76, 129, 40)
HSLhsl(96, 53%, 33%)
HSVhsv(96, 69%, 51%)
CMYKcmyk(41.1%, 0%, 69%, 49.4%)
CIE-LABlab(48.75, -33.85, 41.12)
CIE-LCHlch(48.75, 53.26, 129.47°)
OKLaboklab(54.68% -0.0943 0.0941)
OKLCHoklch(54.68% 0.133 135.1)
XYZxyz(11.2135, 17.3896, 4.7728)
Luminance0.1739 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8128 #5D2881
analogous
#788128 #4C8128 #288130
triadic
#4C8128 #284C81 #81284C
tetradic
#4C8128 #287881 #5D2881 #813028
square
#4C8128 #287881 #5D2881 #813028
split-complementary
#4C8128 #302881 #812878
monochromatic
#15240B #30521A #4C8128 #68B036 #87CB58

Accessibility & contrast

On white

4.69
#4C8128 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#4C8128 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C8128
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8128#FFFFFF#000000##FFFFFF
##4C81281.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86771C
Deuteranopia (green-blind)
#7F7230
Tritanopia (blue-blind)
#4B7C6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4c8128;
/* rgb */ color: rgb(76, 129, 40);
/* oklch */ color: oklch(54.7% 0.133 135.1);
Tailwind
colors: {
  custom: {
    50: '#82a667',
    500: '#4c8128',
    950: '#000000',
  },
}
SCSS
$custom: #4c8128;
$custom-light: #82a667;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8128",
  "rgb": {
    "r": 76,
    "g": 129,
    "b": 40
  },
  "hsl": {
    "h": 95.73,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54677,
    "c": 0.13318,
    "h": 135.1
  },
  "luminance": 0.1739
}

Semantic roles & 50–950 ramp

primary
#4C8128
secondary
#8B54B0
accent
#4CDCA2
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4C8128

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

Preview Lab → · Contrast checker → · Palette generator →

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