How to change the task colors ?

Open the task settings (gear-shaped icon), select the desired color, then confirm your choice.