We introduce a family of weighted BMO and VMO spaces for the unit ball and use them to characterize bounded and compact Hankel operators between different Bergman spaces. In particular, we resolve two problems left open by S. Janson in 1988 and R. Wallsten in 1990.