Tooth Colored Fillings

What is the purpose of a tooth colored filling?