How do I edit the colour of a anim trail in blueprint?

I am working on a game where the colours change with the speed of the player. We have a trail attached to the player using the trail anim notify. How can I access parameters of this particle or it’s materials to change its colour via blueprint?