#4C8222#4C8222

#4C8222 is a mid, vivid yellow-green. Relative luminance 0.176; OKLCH L 54.9% C 0.139 H 134.5°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#4C8222
RGBrgb(76, 130, 34)
HSLhsl(94, 59%, 32%)
HSVhsv(94, 74%, 51%)
CMYKcmyk(41.5%, 0%, 73.8%, 49%)
CIE-LABlab(49.03, -34.79, 43.90)
CIE-LCHlch(49.03, 56.01, 128.39°)
OKLaboklab(54.89% -0.0973 0.099)
OKLCHoklch(54.89% 0.139 134.5)
XYZxyz(11.2516, 17.6167, 4.3206)
Luminance0.1762 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8222 #582282
analogous
#7C8222 #4C8222 #228228
triadic
#4C8222 #224C82 #82224C
tetradic
#4C8222 #227C82 #582282 #822822
square
#4C8222 #227C82 #582282 #822822
split-complementary
#4C8222 #282282 #82227C
monochromatic
#132109 #305115 #4C8222 #68B32F #87D14E

Accessibility & contrast

On white

4.64
#4C8222 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#4C8222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #4C8222
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8222#FFFFFF#000000##FFFFFF
##4C82221.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877711
Deuteranopia (green-blind)
#80732B
Tritanopia (blue-blind)
#4B7D6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #4c8222;
/* rgb */ color: rgb(76, 130, 34);
/* oklch */ color: oklch(54.9% 0.139 134.5);
Tailwind
colors: {
  custom: {
    50: '#83a764',
    500: '#4c8222',
    950: '#000000',
  },
}
SCSS
$custom: #4c8222;
$custom-light: #83a764;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8222",
  "rgb": {
    "r": 76,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 93.75,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54891,
    "c": 0.13883,
    "h": 134.5
  },
  "luminance": 0.17617
}

Semantic roles & 50–950 ramp

primary
#4C8222
secondary
#864CB4
accent
#46E29E
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F06
muted
#7C7F7A

Preview Lab

Preview with #4C8222

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

Preview Lab → · Contrast checker → · Palette generator →

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