Coming to the origin of the two, Imperialism has a longer history than Colonialism. While the history of colonialism dates back to 15th century, Imperialism has its origins dating back to the Romans.
Colonialism has its origins when Europeans started to look outside their country, pursuing trade with other nations. Though colonialism can be attributed to the trade pursuits of a country, Imperialism is just not like that and it involves individual pursuits only