Vertex color changing according to velocity

I’m trying to reproduce something that can be done in Houdini where you can change a vertex color according to its velocity. Like the faster it moves the whiter it becomes. Would it be possible?

This one should work (cycles only though I think) Made happier colors though.

you can control it better with adding a math node after the velocity output, set it to exponent or something nice.