Chameleon: Automated Color Palette Adaptation for Dark Mode Data Visualizations
Manusha Karunathilaka, Songheng Zhang, Anthony Tang, Kotaro Hara, Jiannan Li, Yong Wang
TL;DR
Chameleon automates dark-mode adaptation of light-mode visualizations by transforming color palettes through a simulated-annealing optimization that balances luminance contrast, color semantics, and adjacent color differences. The method includes palette extraction via k-means, three loss functions in the LCH/DeltaE color spaces, and a transparent optimization process starting from the input palette. Evaluations across case studies, expert interviews, system metrics, and a user study demonstrate improvements in color consistency and usable legibility relative to simple color inversion, with practical workflow benefits for designers. The work provides a solid foundation for automated cross-mode visualization design and points to extensions for SVG, interactive visuals, and accessibility considerations.
Abstract
Dark mode has gained widespread adoption across mobile platforms due to its benefits in reducing eye strain and conserving battery life. However, while the mobile system switches to dark mode, most visualizations remain designed for light mode, causing visual disruptions. Existing methods, such as manual adjustment or color inversion, are either time-consuming or fail to preserve the semantic meaning of colors in visualizations, making them less effective in dark mode. To address this challenge, we propose Chameleon, an algorithm that automatically transforms light mode visualizations into dark mode while maintaining visual clarity and color semantics. By optimizing for luminance contrast, color consistency, and adjacent color differences, Chameleon ensures that the transformed visualizations are legible and visually coherent. Our evaluation includes case study, expert interview, system evaluation, and a user study, and these demonstrate that Chameleon is effective at translating visualizations for dark mode.
