[Material] How do I generate a proper gradient?

Whenever I use a TexCoord node to generate a gradient, the gradient seems to be less straight from A to B than I’d like it to be. As shown in image, you can see how it heavily favors the white part for some reason - am I doing something wrong, or can someone direct me to how I could get the desired result?

I would first try plugging in a saturate node after the mask.
If not. Feed the mask to a lerp and reduce 1 to where it visually looks like the progression you want, then saturate.