Expansion symbols of different rarities (colors) are considered the same symbol. Essentially, the spell must be from a different expansion than every permanent you control and card in your graveyard to get the Treasure token.