# NumColor: Precise Numeric Color Control in Text-to-Image Generation

Source: [NumColor: Precise Numeric Color Control in Text-to-Image Generation](<https://www.sota2.com/research/paper/69b8dfde0636e5bf4afbe775>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-03-18T05:00:04.467Z

Authors: Muhammad Atif Butt, Diego Hernandez, Alexandra Gomez-Villa, Kai Wang, Javier Vazquez-Corral, Joost Van De Weijer

Published: 2026-03-13T19:37:25.000Z

## Abstract

Text-to-image diffusion models excel at generating images from natural language descriptions, yet fail to interpret numerical colors such as hex codes (#FF5733) and RGB values (rgb(255,87,51)). This limitation stems from subword tokenization, which fragments color codes into semantically meaningless tokens that text encoders cannot map to coherent color representations. We present NumColor, that enables precise numerical color control across multiple diffusion architectures. NumColor comprises two components: a Color Token Aggregator that detects color specifications regardless of tokenization, and a ColorBook containing 6,707 learnable embeddings that map colors to embedding space of text encoder in perceptually uniform CIE Lab space. We introduce two auxiliary losses, directional alignment and interpolation consistency, to enforce geometric correspondence between Lab and embedding spaces, enabling smooth color interpolation. To train the ColorBook, we construct NumColor-Data, a synthetic dataset of 500K rendered images with unambiguous color-to-pixel correspondence, eliminating the annotation ambiguity inherent in photographic datasets. Although trained solely on FLUX, NumColor transfers zero-shot to SD3, SD3.5, PixArt-{\\alpha}, and PixArt-{\\Sigma} without model-specific adaptation. NumColor improves numerical color accuracy by 4-9x across five models, while simultaneously improving color harmony scores by 10-30x on GenColorBench benchmark.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Numerical Color Understanding on GenColorBench](<https://www.sota2.com/research/sota/numerical-color-understanding-on-gencolorbench.md>): Numerical Color Understanding; GenColorBench; ISCC-L1: 55.71.

- [Color Harmony on GenColorBench](<https://www.sota2.com/research/sota/color-harmony-on-gencolorbench.md>): Color Harmony; GenColorBench; RGB Value: 24.38.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2603.13547>)

[PDF](<https://arxiv.org/pdf/2603.13547.pdf>)
