From the Super Mario Wiki
Retrieved from "http://www.mariowiki.com/index.php?title=Purple_Coin&oldid=1922931"
Purple Coins are special Coins that first appeared in Super Mario Galaxy. They only appear in the regular galaxies when a Purple Comet is in orbit of a Galaxy. Unlike regular coins, these coins do not restore any of the player's health, nor refill the air gauge while underwater.
Super Mario Galaxy
The player always needs to collect 100 Purple Coins to make a Power Star appear. Purple Coin Missions sometimes have a time limit. When there is a time limit, the Purple Coins are usually either set along a linear path, or over a hundred appears and only one hundred of them need to be collected. Additionally, once the Power Star appears, the player must collect it before the remaining time runs out.
In missions that are not timed, the Purple Coins are spread out across the level, requiring the player to explore every area in order to find them all.
All of the timed Purple Coin Galaxies have a theme that is a remix of Gusty Garden Galaxy's theme. The Battlerock and the Dreadnought Galaxy have the same theme, but they do not have time limits. Instead, the Purple Coins appear in a linear path while Mario stands on a moving platform.
Super Mario Galaxy 2
Purple Coins re-appear in Super Mario Galaxy 2. They still appear in Comet missions, however a small change has been made: the timer stops once the requirements are met. In the Rolling Coaster Galaxy, a Purple Coin will be in a ball, replacing the Star Ball. This is called a Purple Coin Ball. In this game, Player 2 can collect Purple Coins for Player 1 along with Yellow Coins.
Super Mario Galaxy Trading Card description
Purple Coins are special coins that only appear when a Purple Comet is in orbit of a galaxy. Mario must travel to each of these galaxies, collecting 100 purple coins in each one in order to reveal the Power Star that is hidden there.