Niagara particle color as a variable that can be set to item rarity

I want to have particles floating up from item pickups on the ground that are color-coded by item rarity. I do have item rarity set up in the data tables, but I don’t know how to actually get the particles to change color.

Also, I am having trouble trying to get “spawn system attached” to attach to item actors that I am using for pickups, since they are actors and not scene components.