# How to change a product's colour to an exact hex code with AI, without changing its shape or reflections

Upload the product photo, name the part to recolour and the hex code, then list everything that must stay the same. We recoloured one mug to two hex codes and measured the result. Includes the exact prompt and common questions.

Published 2026-11-10 · Updated 2026-11-15 · https://miku.app.itstudio.club/blog/ai-change-product-color-by-hex-code

> **Short answer:** Upload the original product photo and write "recolour only [the part] to #HEX (colour name, RGB values)", then list everything that must not change: shape, highlights and reflections, background, lighting and angle. In our test with GPT Image 2.6 Sunburst, a target of deep teal #1F4E5F measured #234E5C on the finished mug, which is hard to tell apart by eye.

## The test: one mug, two hex codes

The original is a cream-glazed ceramic mug. We recoloured it to deep teal #1F4E5F and to dusty rose #E3A6A1, each time uploading only the original photo, with GPT Image 2.6 Sunburst at 1K.

![Cream ceramic mug, original photo](https://miku.app.itstudio.club/blog-media/ai-change-product-color-by-hex-code/mug-original.webp "Original") ![The mug recoloured to deep teal #1F4E5F](https://miku.app.itstudio.club/blog-media/ai-change-product-color-by-hex-code/mug-teal.webp "Recoloured to #1F4E5F") ![The mug recoloured to dusty rose #E3A6A1](https://miku.app.itstudio.club/blog-media/ai-change-product-color-by-hex-code/mug-rose.webp "Recoloured to #E3A6A1")

The mug's shape, handle, rim, highlight positions, background and shadow all match the original. We measured a patch in the middle of the mug body:

| Target | Measured (mug body) | Result |
| --- | --- | --- |
| #1F4E5F deep teal | #234E5C | Almost identical |
| #E3A6A1 dusty rose | #E6B2A5 | Slightly lighter |

The rose reads lighter because the sample sits on the lit side. AI recolouring keeps the original light and shadow, so lit areas come out a little lighter than the code and shaded areas a little darker. You get "this colour under this light", not a flat swatch. If it has to match a printed colour card exactly, do a final colour correction in an image editor.

## A prompt you can reuse

> Recolor only the glaze of the mug to the exact colour #1F4E5F (deep teal, RGB 31, 78, 95). Keep the mug's shape, handle, rim thickness, glossy highlights and reflections, the background, the shadow, the lighting and the camera angle exactly the same. Do not add or remove anything.

This is the exact prompt behind the example. For your product, change only the part name and the colour.

## Six rules for recolour prompts

1. **Give the hex code, a colour name and the RGB values.** A hex code alone is not always read precisely; adding "deep teal" and the RGB makes results steadier.
2. **Name the part.** For shoes: "only the upper; keep the sole and laces". For bags: "only the leather body; keep the hardware".
3. **List what must not change.** Shape, logo, text, stitching, highlights, background, angle. The more specific, the less gets redrawn.
4. **One colourway per generation.** Five colours means five generations, each from the original. Recolouring a recoloured image stacks the drift.
5. **If you have a physical swatch, upload it as image 2.** "Change the upper of the shoe in image 1 to the colour of the fabric in image 2" is clearer than a code.
6. **Preview at 1K, list at 2K or 4K.** Settle the colour quickly at 1K, then regenerate at high resolution.

## How Miku AI users recolour products

Recolour tasks on Miku AI over the 30 days up to 10 November 2026:

- About **83%** included reference images. Of those, more than half uploaded two or more, for example the product plus a colour swatch.
- About **60%** of prompts explicitly asked for things to "stay the same".
- GPT Image 2 was used most (about half), then GPT Image 2.5 Sunburst.
- About half used 1K output; the rest were 2K and 4K.

## Additional composition illustration

![Ceramic, metal and fabric reflect light differently; specify the material separately from its target color.](https://miku.app.itstudio.club/blog-media/formats-20261115/materials.webp "Added November 15, 2026; 1K GPT Image 2.6 illustration generated through image2pro")

Ceramic, metal and fabric reflect light differently; specify the material separately from its target color. This independently generated illustration is not a before-and-after result from the original test and is not included in its statistics.

## FAQ

### Can I use a Pantone code?

You can, but the model may not know every Pantone number. Convert it to hex and RGB first and give the colour name as well.

### Will the logo or text on the product change?

It can be redrawn. Add "keep the logo and text, their content, position and colour unchanged" to the prompt and zoom in to check the result.

### Why is the result slightly off the hex code?

The model keeps the original light and shadow, so lit areas come out lighter and shaded areas darker. Our deep teal was almost exact; the dusty rose was a little lighter on the lit side. For strict colour work, do a final correction after the AI step.

### Which model should I use?

The example used GPT Image 2.6 Sunburst. Miku AI users most often recolour with GPT Image 2 and GPT Image 2.5 Sunburst. See [pricing](https://miku.app.itstudio.club/pricing) for rates; failed generations are refunded automatically.

### How many reference images can I upload?

Up to 16 for GPT Image models on Miku AI and 14 for Nano Banana models; see [How many reference images can Nano Banana Pro take?](https://miku.app.itstudio.club/blog/nano-banana-pro-reference-image-limit). One or two are enough for recolouring.
