In this study, we investigate the quantum coherence in a hybrid system comprising an atomic ensemble trapped in a cavity that is coupled with a standard cavity optomechanical system. By the concept of quantum coherence measure for Gaussian states, we show that the quantum coherence initially in a cavity and atom can be transferred to another cavity and the mechanical oscillator. The effects of other parameters related to the hybrid optomechanical system, such as the optical coupling, the detunings of the cavity and atom, and the atom–cavity coupling on the quantum coherence of each subsystem are investigated in detail. In addition, the corresponding bipartite coherence between the mechanical oscillator and other subsystems as well as the total coherence of the system are also analyzed.