Paint Anything: Toward Any-Color Controllable Image Generation and Editing
Abstract
Any-color control, specifying an object’s color by any 24-bit hex value instead of a coarse color word, is a practical requirement for image generation and editing in design work. Prior work often relies on dedicated color representations or specialized inference procedures, which can be hard to scale across colors or transfer to new architectures. In this paper, we present Paint-Anything, a single model that reads hex values directly from the prompt for both generation and editing. Our key insight is that the text encoders of recent image generators are language models that already associate hex values with colors, so a generator can learn hex control by grounding these values in object pixels. To this end, we construct Paint-500K, which labels object colors in real images and adds editing pairs, and combine it with pure-color anchors, solid-color images applied only at high-noise timesteps, for lightweight RGB alignment. We further introduce Any Color Benchmark (ACBench), with ACBench-T2I and ACBench-Edit, to measure object-level hex color fidelity. Experiments and ablations show that Paint-Anything substantially improves any-color generation and editing over the base model, suggesting that arbitrary hex-color control can be learned as a native prompt-following behavior of modern image models.