A dense deployment of small cells is one of the key characteristics envisioned for future 5G mobile networks in order to provide the required capacity increase. To cut cabling costs, small cells are foreseen to form multihop topologies using high capacity backhaul wireless links in the mmWave bands. Such small cells are deployed within the coverage area of a macro cell (eNB) to provide localized capacity where needed according to the well known Heterogeneous Network concept (HetNet). However, green networking will be very important because powering on unnecessarily a massive amount of small cells may lead to increased OPEX and CO2 emission. In this paper, we propose an optimization model that minimizes the total power consumption of 5G HetNets deployments while providing the required capacity and coverage. Our model jointly optimizes the user association, routing in the multihop backhaul and decides to power on or off the small cells to serve the user demands. Our numerical evaluation show significant power savings over a large range of traffic demand distributions while keeping the blocking probability low.