High-accuracy three-dimensional numerical simulations of miscible displacements with gravity override in homogeneous porous media are carried out for the quarter five-spot configuration. Special emphasis is placed on describing the influence of viscous and gravitational effects on the overall displacement dynamics in terms of the vorticity variable. Even for neutrally buoyant displacements, three-dimensional effects are seen to change the character of the flow significantly, in contrast to earlier findings for rectilinear displacements. At least in part this can be attributed to the time dependence of the most dangerous vertical instability mode. Density differences influence the flow primarily by establishing a narrow gravity layer, in which the effective Péclet number is enhanced owing to the higher flow rate. However, buoyancy forces of a certain magnitude can lead to a pinch-off of the gravity layer, thereby slowing it down. Overall, an increase of the gravitational parameter is found to enhance mostly the vertical perturbations, while larger Pe values act towards amplifying horizontal disturbances. The asymptotic rate of growth of the mixing length varies only with Péclet number. For large Péclet numbers, an asymptotic value of 0.7 is observed. A scaling law for the thickness of the gravity layer is obtained as well. In contrast to immiscible flow displacements, it is found to increase with the gravity parameter.