Iron is a solid, gray metal. Oxygen is a colorless gas. When they chemically combine, rust is made. Rust has a reddsh brown color. Why is rust different from the iron or oxygen that it is made of?
Because they react.
The color before the reaction only matter if both reagents are liquid or aqueous and if they don't react.