# Replace colors

## Step by step guide

{% stepper %}
{% step %}

### Open the AI tool

1. Go to [Fermat.app](https://fermat.app/) and log into your account.
2. Open: '[Replace color](https://toolmaker.fermat.app/tool/replace-color-4c7406f4-0d23-4116-bc92-6f4e56f433e4)' tool.
   {% endstep %}

{% step %}

### Upload your print

{% hint style="warning" %}
For best results, we recommend quantizing your print before modifying its colors. You can do that with the [Reduce Colors](https://toolmaker.fermat.app/tool/quantize-your-pattern-0f92a291-305a-4a22-92e0-ca355994e4a5) tool.
{% endhint %}

{% hint style="success" %}
Supported formats: JPEG, PNG, and WEBP
{% endhint %}
{% endstep %}

{% step %}

### Set the current HEX value to replace

Specify the HEX value to modify
{% endstep %}

{% step %}

### Set the new HEX value

Specify the new HEX value to replace the old one
{% endstep %}

{% step %}

### Generate image

Click '*Generate button*' and let the AI process your inputs.

<figure><img src="https://2419988688-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVR1BDoqmJbjltMHKIdui%2Fuploads%2F49fuctc7SYGJ4mAfV8ZC%2FCaptura%20de%20pantalla%202025-01-30%20a%20les%2011.39.01.png?alt=media&#x26;token=01a4c64f-2d7f-4d09-b00b-dea03ffaf17b" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

(tutorial)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fermat.app/ai-tool-catalogue/graphic-and-prints/replace-colors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
