Hummingbirds link red with food because studies have shown that red flowers have more nectar. They recognize that red flowers and feeders are likely to have high-quality nectar.
Due to their heightened sensitivity to colors, they see the red to orange range more vividly than other colors. Red also shows up more prominently against a green backdrop.