The short answer
Red dye is not needed for hummingbirds, and most bird experts advise leaving it out. Research on how dye affects hummingbirds is limited, so no one can say for sure how much harm it does. Since it offers no clear benefit, there is little reason to take the risk.
Why people add red dye
Hummingbirds are drawn to red, and many commercial nectars are colored red for that reason. A feeder with red parts, or red flowers nearby, helps attract hummingbirds without any dye in the nectar.
What the research shows
Scientific studies on red dye and hummingbirds are few. Some people worry that artificial dyes could harm birds, and that concern is one reason many experts recommend skipping them. Good evidence that dye draws more visits is lacking. Clear nectar in a red feeder works well.
Check labels on premade nectar
Some premade nectars are sold with red dye. If you buy one, check the label, and look for products that say they contain no dye. Making your own avoids the question altogether. See how to make hummingbird nectar for the recipe.
Use a red feeder instead
Many feeders have red parts, such as a red base, red ports, or red flowers on the feeder. These parts help draw birds in without adding anything to the nectar. For feeder choices, see what kind of hummingbird feeder is best.
If you have been using dyed nectar
Stop using dyed nectar and switch to clear homemade nectar. Empty the feeder, then wash it well, because dye can leave a stain on plastic and cling to the ports. Rinse until no color remains.
Other things to avoid
Red dye is only one thing to leave out. Honey, brown sugar, and sugar substitutes are also not recommended. Keeping nectar fresh and the feeder clean matters a lot, too. Change the nectar on schedule, as explained in how often to change hummingbird nectar, and clean the feeder at each refill.