When a light beam goes through a medium, it hits the particles existing in them. Due to this phenomenon, some of the light rays get absorbed while a few get scattered in various directions. This is known as a scattering of light.
Danger signs are red in color because air molecules disperse them the least. Scattering has an inverse relationship with the fourth power of a color's wavelength.
One can see the color red scattered the least since it has the greatest wavelength.