Two scientific papers have identified a single gene as the source of red colouring in birds. The gene makes an enzyme that lets the birds convert yellow pigments, from food which they eat, into red ones; these are deposited in their feathers or beaks.
Article here.
Article here.