How can I make the transition from blue to purple (I do not want the white part) more smooth?
In your setup, the emission shader is causing that white strip.  In the pic below, I set it up exactly as you did, but I bypassed the emission shader.