Hydroxychloroquine is metabolized by CYP2D6, CYP3A4, and CYP2C8, and inhibits CYP2D6, while its metabolites also inhibit CYP3A in vitro.