#4C8722#4C8722

#4C8722 is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.2% C 0.145 H 135.2°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#4C8722
RGBrgb(76, 135, 34)
HSLhsl(95, 60%, 33%)
HSVhsv(95, 75%, 53%)
CMYKcmyk(43.7%, 0%, 74.8%, 47.1%)
CIE-LABlab(50.66, -36.98, 45.54)
CIE-LCHlch(50.66, 58.66, 129.07°)
OKLaboklab(56.23% -0.1032 0.1025)
OKLCHoklch(56.23% 0.145 135.2)
XYZxyz(11.9329, 18.9793, 4.5477)
Luminance0.1898 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C8722 #5D2287
analogous
#7E8722 #4C8722 #22872B
triadic
#4C8722 #224C87 #87224C
tetradic
#4C8722 #227E87 #5D2287 #872B22
square
#4C8722 #227E87 #5D2287 #872B22
split-complementary
#4C8722 #2B2287 #87227E
monochromatic
#152509 #305616 #4C8722 #68B82E #87D350

Accessibility & contrast

On white

4.38
#4C8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#4C8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4C8722
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C8722#FFFFFF#000000##000000
##4C87221.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C0F
Deuteranopia (green-blind)
#84772C
Tritanopia (blue-blind)
#4A8273
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #4c8722;
/* rgb */ color: rgb(76, 135, 34);
/* oklch */ color: oklch(56.2% 0.145 135.2);
Tailwind
colors: {
  custom: {
    50: '#83aa64',
    500: '#4c8722',
    950: '#000000',
  },
}
SCSS
$custom: #4c8722;
$custom-light: #83aa64;
$custom-dark: #000000;
JSON
{
  "hex": "#4c8722",
  "rgb": {
    "r": 76,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 95.05,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56231,
    "c": 0.14545,
    "h": 135.2
  },
  "luminance": 0.1898
}

Semantic roles & 50–950 ramp

primary
#4C8722
secondary
#8B4EB7
accent
#45E3A1
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4C8722

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

Preview Lab → · Contrast checker → · Palette generator →

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