Mercury ( II ) bromide , also known as mercuric bromide , is a chemical compound . Its chemical formula is HgBr2 . Mercury ( II ) bromide or mercuric bromide is the chemical compound composed of mercury and bromine with the formula HgBr2 .