How to change the color of color ramp using drivers?

I think you could do this with this node setup by DanielFox :

It gives you inputs for the colour slots of the ramp
(note I have also used it to input images and mix them with colour ramps)