We theoretically study the generation of coherence in generalized two-level atoms with hyperfine structure by utilizing the detuning-induced stimulated Raman adiabatic passage (D-STIRAP). As expected, the degree of attainable coherence between the ground and excited states cannot be as large as that for the ideal two-level atoms without hyperfine structure. However, we find that the substantial degree of coherence can still be produced with small modulations, and the modulation period is essentially determined by the hyperfine splittings in the ground and excited states. The D-STIRAP scheme in generalized two-level atoms is sufficiently robust against the various parameters such as intensities of lasers, initial detuning, time delay between the laser pulses, and Doppler broadening. As a specific example, we show realistic results for the D 1 transition of Na.