We precisely investigate the Zeeman and Paschen-Back effects of the hyperfine structure during the rubidium $5{\phantom{\rule{0.16em}{0ex}}}^{2}{S}_{1/2}\ensuremath{\rightarrow}5{\phantom{\rule{0.16em}{0ex}}}^{2}{D}_{5/2}$ two-photon transition. Owing to the high sensitivity of the
D state of atoms to a magnetic field, the splittings of the spectra of the
D state are sufficiently large in a weak magnetic field of
<10 G. We experimentally observe how in the hyperfine coupling in the
52D5/2 state is disrupted even in weak magnetic fields around 10 G and the energy levels are arranged according to their total angular momentum
J and nuclear spin
I. The transient of the spectra known as the Paschen-Back effect is observed even in a weak magnetic field with an order of magnitude of several tens of gauss. The results of theoretical calculations for energy shifts and transition intensities under a magnetic field are in quantitative agreement with the experimental results.