Magnesium nitride, which possesses the chemical formula Mg3N2, is an inorganic compound of magnesium and nitrogen. At room temperature and pressure it is a greenish yellow powder.