I believe that this was China.
Stupas originated in India around 4th century BCE and later the idea spread around Asia . In China it was then combined with the Chinese Watchtowers, and then as such it spread (under the name Pagoda) to other countries, such as Japan.
I don't know what u mean by primary purpose light colors but if you just asking for primary colors these are the only ones.