Why do flags use colors?
The short answer
Flags must be visible from a distance, and their colors and shapes may express history, nature, religion, or political identity.
How it developed
Color meanings differ by country; the same color is not a universal symbol. Designs can also change over time.
A familiar example
Flag colors reflect both visibility and meaning, not only visual preference.