However, in reality, the composition of fluorite minerals can deviate from this ideal formula due to the replacement of calcium ions with other cations, such as yttrium, cerium, or strontium. Additionally, there can be variations in the presence of fluorine, and impurities like carbon dioxide, hydrocarbons, or rare earth elements may also be present in the mineral. These deviations and variations result in distinct varieties and colorations of fluorite.