#4C7916#4C7916

#4C7916 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.4% C 0.134 H 131.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#4C7916
RGBrgb(76, 121, 22)
HSLhsl(87, 69%, 28%)
HSVhsv(87, 82%, 47%)
CMYKcmyk(37.2%, 0%, 81.8%, 52.5%)
CIE-LABlab(46.00, -31.49, 45.30)
CIE-LCHlch(46.00, 55.17, 124.81°)
OKLaboklab(52.39% -0.0893 0.1001)
OKLCHoklch(52.39% 0.134 131.7)
XYZxyz(9.9626, 15.2688, 3.1811)
Luminance0.1527 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C7916 #431679
analogous
#797416 #4C7916 #1A7916
triadic
#4C7916 #164C79 #79164C
tetradic
#4C7916 #167974 #431679 #79161A
square
#4C7916 #167974 #431679 #79161A
split-complementary
#4C7916 #161A79 #741679
monochromatic
#101A05 #2B450D #4C7916 #6DAD1F #8CD930

Accessibility & contrast

On white

5.18
#4C7916 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#4C7916 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C7916
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C7916#FFFFFF#000000##FFFFFF
##4C79161.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#786C21
Tritanopia (blue-blind)
#4D7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4c7916;
/* rgb */ color: rgb(76, 121, 22);
/* oklch */ color: oklch(52.4% 0.134 131.7);
Tailwind
colors: {
  custom: {
    50: '#82a05d',
    500: '#4c7916',
    950: '#000000',
  },
}
SCSS
$custom: #4c7916;
$custom-light: #82a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c7916",
  "rgb": {
    "r": 76,
    "g": 121,
    "b": 22
  },
  "hsl": {
    "h": 87.273,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52392,
    "c": 0.13409,
    "h": 131.7
  },
  "luminance": 0.15269
}

Semantic roles & 50–950 ramp

primary
#4C7916
secondary
#703DAE
accent
#3CEC8C
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4C7916

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

Preview Lab → · Contrast checker → · Palette generator →

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