How can I add colors to both linear gradient colors?

I’m using a linear gradient on a material. I can change the white color by multiplying, but I can’t find a way to change the color of the black part. Thanks!

Do you mean this?

Or mask R/G from Texture coord.