Why Image Models Ignore HEX Codes
Image models do not reliably follow HEX codes. Stable color control comes from combining references, color descriptions, and scene constraints.
Why Image Models Ignore HEX Codes
Six characters decide whether your image comes back with the color you asked for or with the model's own idea of close enough. The format is #RRGGBB. Each pair covers one channel, red, green, blue, on a scale running 00 to FF (0 to 255 in decimal). The alphabet is 0-9 plus A-F because you need sixteen symbols to write sixteen values in a single digit.
Anchors worth memorizing: #FF0000 is pure red, #000000 is black, #FFFFFF is white, #FF5733 is a loud orange, #1A1A2E is a deep navy. Web, print, interface work, anywhere a shade has to survive a handoff between tools, this is the notation.
The trouble starts the moment you feed one of those values to an image model.
Three behaviors, one test
Models split into three camps. Some parse HEX natively and obey the value. Some disregard it completely and react only to the words surrounding it. The rest treat it as a hint, nudging the palette a few degrees toward the stated color without ever landing on it.
You can classify a model in three generations. Hold the prompt fixed, change nothing except the HEX, and compare. Identical output means you are typing decoration. A slight shift in the same direction means the model reads it as seasoning. A distinct move toward the target means the value carries weight and you can lean on it.
Three generations for the test, a week of guessing saved.
Where words fall apart
Nobody describes color reliably in prose, including people who are good at it. "Warm gold" ships as mustard. "Soft teal" arrives as aquamarine. "Dusty rose" is the classic casualty. Half the industry writes it and no two readers picture the same swatch.
There's a second failure, and it is worse. You spot the exact shade in a photo, you know you want that one, and now you have to convert it into either six characters or a single adjective. That translation step is where intent dies. Most people can see the difference between two adjacent shades. Naming it is a separate skill, and a rarer one.
The reference route
Skip the naming. Feed the image.
Set your references in the palette field. Up to 20 photos, and one is enough. Extraction runs on whatever you hand it, so a single frame with the right grade will carry an entire batch.
Watch one thing: more references average the palette. Twenty photos from twenty different shoots converge on beige mud. Two to four frames from the same shoot, same lighting, same grade, hold together far better than a big pile.
Everything else in the panel is optional. Character identity lock, preset, both can stay off. You can generate with no character at all under a general-purpose preset and the palette still applies.
Then generate. Extraction and application happen without you specifying a single value.
Picking references that survive
Before committing to a candidate reference, pull its four to six dominant colors and look at them. Don't judge it on whether you like the colors. Look at the spread. A reference shot entirely in high-saturation hues pushes your output toward high saturation, even for scenes that should read muted. A reference with one dominant subject, say a red jacket or a vivid logo, tends to drag that single color across the whole frame.
Skin tones are the tell. If the reference grade leans hard teal or hard orange, faces in the output pick up the cast. Sometimes that is the look you were after. Sometimes it is a problem you will not notice until round three.
Where this earns its keep
Mood transfer. A rainy street in cool blue, or the amber of late sun, carries into a new composition through palette alone. No lighting paragraph required.
Brand work. Existing product shots, packaging, social graphics. Pull the palette and generate visuals that skip the color pass afterward.
Borrowed grades. You liked the color treatment in something you saw. Use that frame as the reference and apply the grade to an unrelated composition. The new image shares the color language and nothing else, which is usually what you wanted.
Series cohesion. Campaign sets, content calendars, product lines. One reference, many generations, one visual thread. Reference-based color beats typed HEX here, because there is no value drift between batches.
Unnameable colors. That green from a vintage poster. That specific rose. Stop describing it.
Failure modes and the fix for each
Batch-to-batch drift. The palette slides between generation five and generation twelve. Cause: regenerating without the reference locked in the same slot, or a preset change mid-run. Fix: freeze the reference set, stay in the same seed family, keep hands off the palette field until the series is done.
Brand color creep. Your brand blue comes back slightly green around image seven. Cause: the model blending your typed value with the reference's dominant color. Fix: give the reference palette priority and put the sample you actually want into the reference slot instead of trusting the text value to hold.
Crushed darks. Deep palettes like #1A1A2E lose separation and collapse into flat black. Fix: choose a reference that carries midtones alongside the darks, so the model has somewhere to place shadow detail.
Filter effect. A heavily tinted palette over a bright daylight scene reads as a color grade rather than natural light. Fix: match the reference's lighting conditions to the scene you are generating.
Manual correction. Without palette control, every off-shade image goes out to a third-party editor for a color pass. That spends exactly the time the workflow was supposed to save.
What it cannot do
Reference-driven palettes and physical lighting realism pull against each other. A strong palette overrides plausible bounce light and atmosphere, because the model is serving the color instruction first. If a shot needs to feel lit rather than graded, loosen the reference and describe the light in words instead.
Nobody has a clean answer for near-identical shades inside a small palette. Two blues five percent apart will merge.
For anything that has to match a color you can see but cannot name, though, showing the model beats describing it.


