We establish bounds for exponential sums twisted by generalized Möbius functions and their convolutions. As an application, we prove asymptotic formulas for certain weighted chromatic partitions by using the Hardy–Littlewood circle method. Lastly, we provide an explicit formula relating the contributions from the major arcs with a sum over the zeros of the Riemann zeta-function.