:The electronic structures of BaMgF 4 crystal containing F color center are studied within the frame work of the fully relativistic self-consistent Direc-Slater theory, using a numerically discrete variational (DV-Xα) method. It is concluded from the calculated results that the energy levels of F color center locate in the forbidden band. The optical transition energy from the ground state to excited state for F color center is about 5.12eV, which corresponds to the 242nm absorption band. These calculated results are well explaining the origin of the absorption bands.