Gradient colors in a sunrise are created by the scattering of sunlight through the atmosphere. As the sun rises, the different layers of the atmosphere scatter the shorter blue and violet wavelengths more than the longer red and orange wavelengths, giving the sky its vibrant colors. This phenomenon is known as Rayleigh scattering and is a common occurrence during sunrise and sunset.