Red light is used for danger signal as
it scatters the least
Red light has the longest wavelength among the visible lights, hence it scatters the least. Because of this, it can be seen from very large distances and also in the foggy weather. That is why it is used as a danger signal.