In the visible spectrum, red light has the longest wavelength at approximately 700 nanometers, while violet has the shortest at around 400 nanometers. Wavelengths determine the color we perceive, with longer wavelengths appearing redder and shorter wavelengths appearing bluer.