For example, a few nitrogen atoms among a diamond's millions of carbon atoms can make the rock appear yellow or brown, while blue diamonds have been besmirched with a few boron atoms.
This results in defects in the lattice structure: some few carbon atoms — fewer than 1 % — separate from the lattice and are replaced with nitrogenatoms, which bring along additional electrons.