Rarities affect the likelihood of a card appearing in boosters. The rarity colours are:
Grey: Common.
Green: Rare.
Purple: Epic.
Golden: Legendary.
You can add up to 2 copies of Common, Rare and Epic cards to your deck, but just 1 copy of Legendary cards.
Cards with Orange rarity are Special, non-collectible cards, such as Defenses.