if a star is moving away from earth at the speed of light?
In contrast, if a star is moving away from the earth, its light is shifted to lower frequencies on the color spectrum (towards the orange/red/infrared/microwave/radio end of the spectrum). A lower frequency shift is called a "red shift".