Device-to-device (D2D) communication has emerged as a promising technique for improving capacity and reducing power consumption in wireless networks. Most existing works on D2D communications either targeted CDMA-based single-channel networks or aimed at maximizing network throughput. In this paper, we, however, aim to enable green D2D communications in OFDMA-based wireless networks. We formally define an optimization problem based on a practical link data rate model, whose objective is to minimize total power consumption while meeting user data rate requirements. We propose solving it using a joint optimization approach by presenting two effective and efficient algorithms, which both jointly determines mode selection, channel allocation and power assignment. It has been shown by extensive simulation results that the proposed algorithms can achieve over 68% power savings, compared to several baseline methods.