The colour depends on light waves
The colour of an object is determined by the colours it absorbs and reflects.
In a light beam, the distance between two wave peaks determines the colour of the light. Red light has a wavelength of 625-740 nm, whereas blue light has wavelengths of 450-500 nm. White light is a mixture of all visible colours.