Rainbow Star

The Rainbow Star is an item that appears in Super Mario Galaxy and Super Mario Galaxy 2. When collected, it transforms Mario into Rainbow Mario (or Luigi into Rainbow Luigi), causing him to become rainbow-colored and leave a trail of light behind him whenever he runs. In this form, he is invincible, can break through certain objects and obstacles, can run faster, and can jump both farther and higher. The theme that plays after collecting a Rainbow Star is a remixed version of the classic invincibility music, and as the power-up begins to wear off, the music, along with Mario's running speed, will get faster and faster until it wears off completely.

Locations
Super Mario Galaxy
 * Good Egg Galaxy, Star 3
 * Honeyhive Galaxy, Stars 1, 2 and 3
 * Battlerock Galaxy, Star 2
 * Ghostly Galaxy, Stars 1, 2 and 3
 * Gusty Garden Galaxy, Stars 2 and 3, Secret Star
 * Dusty Dune Galaxy, Star 2
 * Gold Leaf Galaxy, Stars 1, 2 and 3
 * Deep Dark Galaxy, Stars 1 and 2
 * Sand Spiral Galaxy

Super Mario Galaxy 2
 * Sky Station Galaxy, Star 1
 * Yoshi Star Galaxy, Comet Star
 * Spin-Dig Galaxy, Star 1
 * Shiverburn Galaxy, Comet Star

Trivia

 * The Rainbow Star is the only power-up in Super Mario Galaxy 2 that does not appear as a souvenir in the engine room of Starship Mario.