Retargeting approaches aim at providing a unified framework for image rendering in which both the intended scene luminance and the actual luminance of the display are taken into account. At the core of any color retargeting method, a color vision model and its inverse are employed. Such a color appearance model should be invertible and cover the entire luminance range of the human visual system. There are not many available models that meet these two conditions. Moreover, most of these models are developed based on psychophysical experiments over color patches, and many have never been used for complex images due to their complexity. In this article, a color retargeting approach based on the mesopic model of Shin et al. ["A color appearance model applicable in mesopic vision," Opt. Rev. 11, 272-278 (2004)] is developed to work with complex images. The authors propose an inverse model for complex images to compensate for color appearance changes on dimmed displays viewed in a dark environment. Their experimental results using both quantitative and qualitative evaluations show a discriminative improvement in the perceived color quality for mesopic vision. The proposed method can be incorporated into image retargeting techniques and display rendering mechanisms.