Synthetic diamond "nanocrystalline" and "microcrystalline" diamond, respectively. Synthetic diamond is the hardest known material, where hardness is defined as resistance to indentation. The hardness of synthetic diamond depends on its purity, crystalline perfection and orientation: hardness is higher for flawless, pure crystals oriented to the <nowiki>[</nowiki>111<nowiki>]</nowiki> direction (along the longest diagonal of the cubic diamond lattice). Nanocrystalline diamond produced through CVD diamond growth can have a hardness ranging from 30% to 75% of that of single crystal diamond, and the hardness can be controlled for specific applications. Some synthetic single-crystal diamonds and HPHT nanocrystalline diamonds (see hyperdiamond) are harder than any known
Crystal help determine the mechanical strength of materials. Another common type of crystallographic defect is an impurity, meaning that the "wrong" type of atom is present in a crystal. For example, a perfect crystal of diamond would only contain carbon atoms, but a real crystal might perhaps contain a few boron atoms as well. These boron impurities change the diamond's color to slightly blue. Likewise, the only difference between ruby and sapphire is the type of impurities present in a corundum crystal. In semiconductors, a special type of impurity, called a dopant, drastically changes the crystal's electrical properties. Semiconductor devices, such