At a granular level, rocks are composed of grains of minerals, which, in turn, are homogeneous solids formed from a chemical compound that is arranged in an orderly manner. The aggregate minerals forming the rock are held together by chemical bonds. The types and abundance of minerals in a rock are determined by the manner in which the rock was formed. Many rocks contain silica (SiO2); a compound of silicon and oxygen that forms 74.3% of the Earth's crust. This material forms crystals with other compounds in the rock. The proportion of silica in rocks and minerals is a major factor in determining their name and properties.
Because perception of color stems from the varying spectral sensitivity of different types of cone cells in the retina to different parts of the spectrum, colors may be defined and quantified by the degree to which they stimulate these cells. These physical or physiological quantifications of color, however, do not fully explain the psychophysical perception of color appearance.