It looks like you are after linear interpolation - in your case, interpolating from white to the specified color. For example, in C #:
public IEnumerable<Color> Interpolate(Color from, Color to, int steps)
{
int range = steps-1;
for (int i=0; i < steps; i++)
{
int j = range - i;
int r = ((from.R * j) + (to.R * i)) / range;
int g = ((from.G * j) + (to.G * i)) / range;
int b = ((from.B * j) + (to.B * i)) / range;
yield return new Color(r, g, b);
}
}
, , , , , . , , , . - 256 , - 255, int s.
EDIT: , RGB , . / RGB HSL HSV . . , .