Earn the green hero mask first, then equip it and speak to the small boy standing in the Fossil Stadium. He hands over the purple mask once you are wearing the green one.
The sequence matters — talking to him beforehand does nothing, which is why this one confuses people who have already found the stadium.