As Psynaptik says you can use the tween plugin, which is pretty easy. Create a white sprite and set it's color property to red, add the tween behaviour to it and then add a tween single property action ( property: color, value: yellow, duration: 5 seconds, etc. ).
Alternatively if you want to manually control each color step you can use gradients from the AdvancedRandom plugin. Define a gradient with color stops (0: red, 10: yellow). Keeping a variable as a counter, each time you want to take a color step increase the counter then use the AdvancedRandom.Gradient method with the counter to sample from the gradient and set the sprites color property. You can use that technique for more complicated color gradients as well, but the transition is always linear ( unlike the tween plugin ).
You can read about the tween plugin in the documentation here https://www.construct.net/en/make-games/manuals/construct-3/behavior-reference/tween
For more information on color gradients check out the tutorial I wrote about the AdvancedRandom plugin here
https://www.construct.net/en/tutorials/getting-started-with-the-advanced-random-plugin-30 the section on color gradients is towards the end.