How to remap color use TSL(help)

I am learning TSL, but stucked at remap material color.


What i want is to remap left color to the right, just like the video use blender do.