Trace impurities and crystal defects directly cause various crystalline minerals, including quartz and diamonds, to exhibit different colors.