# Conversor de hex para RAL

> Digite um código hex como #0F4336 ou valores RGB como 15, 67, 54. Você vê a sua cor ao lado das cores RAL mais próximas, com a diferença de cada uma e se a correspondência é boa.

Human page: https://unmakelabs.com/pt-br/converter-hex-ral/. This is the version for AI agents.

## What it does

Converter hex ou RGB para a cor RAL mais próxima. Digite um código hex como #0F4336 ou valores RGB como 15, 67, 54. Você vê a sua cor ao lado das cores RAL mais próximas, com a diferença de cada uma e se a correspondência é boa.

## Não existe conversão exata de hex para RAL

As cores RAL são amostras físicas de tinta; o hex é uma cor de tela. A maioria das 16,7 milhões de cores hex não tem equivalente RAL, e todo valor hex publicado para uma cor RAL já é uma aproximação. Por isso, a resposta honesta são as cores RAL mais próximas, com a distância de cada uma, e é isso que este conversor mostra.

## Como ler o resultado

Abaixo de ΔE 1,5 as duas cores parecem praticamente iguais na tela; até 3 é uma correspondência próxima; até 6, uma diferença visível. Acima disso, nenhuma cor RAL está próxima: considere o RAL Design, que tem 1.825 cores e preenche as lacunas entre as cores do Classic.

## Facts

- **Entrada:** Hex (#RRGGBB ou #RGB), RGB ou Lab
- **Saída:** 5 RAL Classic mais próximas, 5 RAL Design mais próximas
- **Diferença:** CIEDE2000 com uma avaliação simples
- **Link:** ?hex=RRGGBB abre o resultado direto

## How a person does it

1. **Digite o código.** Cole um código hex com ou sem #, ou três números RGB separados por vírgulas ou espaços.
2. **Compare lado a lado.** A sua cor e a cor RAL mais próxima aparecem em duas amostras grandes, com as outras quatro candidatas e suas diferenças logo abaixo.
3. **Copie ou salve.** Copie o código RAL, o link deste resultado ou baixe o cartão de amostra, o CSV ou o JSON.

## Open a file by link (works today)

The viewer runs in a browser. Any public file URL can be opened by adding `?src=` (URL-encoded): `https://unmakelabs.com/pt-br/converter-hex-ral/?src=https://unmakelabs.com/apps/ralmatch/samples/blue-shutters.jpg`. The host must allow cross-origin reads (GitHub raw, most object storage and CDNs do). A camera view can be added after `#`: `?hex=RRGGBB` (or `?hex=r,g,b`; add `&set=design` for RAL Design) shows the nearest RAL colours for a colour code; `?src=<public photo URL>` opens a photo (CORS) to tap.

Embed: `<iframe src="https://unmakelabs.com/embed/ralmatch/?src=<url-encoded file URL>" width="100%" height="480" style="border:0"></iframe>`.

## Send your own file (live)

`POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/ral_match/jobs?wait=25` with the file as multipart `file` (or JSON `file_base64` + `filename`, or `file_url`), API tool `ral_match`: Find the nearest RAL colour (photo or colour code). The same engine code as this page. No sign-up; Free: 5 full results per IP per day without a key (resets at 00:00 UTC); POST /v1/keys gives an instant key with 25 more full results (one-time, not renewed); each accepted correction adds 1 free call (up to 20 a month). Options (JSON in `options`): `colour`: a colour instead of a photo: #hex, r,g,b or lab L a b (<= 100); `x`: photo: x of the point to sample, pixels (x and y left out: the centre of the photo is sampled, as the summary says); `y`: photo: y of the point to sample, pixels; `r`: photo: sample radius in pixels (default 1.5% of the short side); `white_x`: photo: x of a white paper/card in the same light; `white_y`: photo: y of the white reference; `white_r`: radius of the white reference.

```bash
# RAL from a photo point, light corrected by a white sheet in the same photo
curl -s -F "file=@wall.jpg" -F 'options={"x":820,"y":610,"white_x":300,"white_y":200}' "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/ral_match/jobs?wait=25"
# RAL from a colour code (JSON body; the colour as a small text file)
curl -s -H "content-type: application/json" -d '{"file_base64":"IzNCODNCRA==","filename":"colour.txt"}' "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/ral_match/jobs?wait=25"
```

## Good to know

Cada tela mostra as cores de um jeito, e os valores de tela das cores RAL vêm de fontes públicas que diferem em alguns ΔE. Para tinta, confira o código RAL num leque de cores físico; o conversor indica qual código procurar.

## Not done by this tool

- Não dá um RAL "exato" (não existe para a maioria das cores hex)
- Não inclui NCS nem Pantone
- Não leva em conta brilho nem textura
- Não precisa de dados nem guarda nenhum

## Value

Finds the nearest RAL colours to a surface in a photo, in the browser: the user taps the colour, then white paper or a grey card in the same photo (or the white and black of our printable card); the page corrects the light (von Kries in Bradford cone space, exposure from the reference's known brightness, haze from the black patch), averages the spot with glare rejected, and ranks RAL Classic (210) and RAL Design System+ (1,825) colours by CIEDE2000, lightness weighted half (2:1:1). Shows the five nearest of each with ΔE and a plain verdict, side-by-side swatches, the colour as HEX/sRGB/CIELAB/CMYK, and a confidence note (overexposed, uneven spot, glare, no reference, effect colours, close pairs). Also matches a typed hex or RGB code. Exports a swatch card PNG, CSV and JSON; the result link carries only the colour code. Nothing is uploaded. Free, no sign-up. RAL values are approximate screen values from public sources; NCS is not offered (licensed).

## When it fits

- A painter, decorator or window/door fitter needs the RAL code of an existing door, gate, frame or façade to order matching paint or parts.
- A facility manager or maintenance planner needs the RAL code of a machine, cabinet or railing to order a touch-up or a replacement part.
- A designer or developer has a hex or RGB colour and needs the nearest RAL Classic or RAL Design code for a supplier.

### When not

- Final colour approval or paint mixing: use a physical RAL fan deck or a spectrophotometer; values here are approximate screen values.
- NCS, Pantone or brand paint codes (not offered); metallic, pearl and fluorescent finishes, which a photo can't capture.

## Why use it instead of the alternatives

- Nothing to install: ?hex=RRGGBB shows the nearest RAL colours for a code, ?src= opens a public photo to tap; embeddable at /embed/ralmatch/.
- A server lookup for colour codes (POST /v1/colour/match, same engine under Node) is specified, not live.
- hextoral and similar 'RAL from image' pickers read one pixel as the camera saw it, with no white balance, no reference and no ΔE shown (checked 1 Dec 2026).
- Generic image colour pickers give hex only; RAL's own apps and fan decks are the reference for final approval.

### What rebuilding it would take

- Correct the photo's light from a white or grey reference (chromatic adaptation and exposure) and reject glare in the measured spot.
- Hold a sourced table of RAL colours in CIELAB and rank them by CIEDE2000, with verdicts and confidence rules.
- Test it on photos with a known RAL colour under different lights.
- A spectral test renderer, real photos with documented colours, and upkeep of the colour tables and their sources.

## Quality

No score published; the limits above say what it does not do. Check results that matter before you rely on them.

## Risk for the user

- Free and unlimited; no sign-up, no ads.
- Photos are read on the user's device and never uploaded.

_Status: photo and colour-code matching, light correction, confidence notes and PNG/CSV/JSON exports work in the browser; agents send their own file to POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/ral_match/jobs?wait=25._

## Privacy

- Photos are read on the user's device and not uploaded; the result link carries only the colour code.
- The page loads no third-party code; the colour tables come from this site.

## Data

Funciona no seu navegador; sua foto fica no seu aparelho. Nada é enviado, e o link do resultado leva só o código da cor.

## FAQ

- **Como converter hex para RAL?** Digite o código hex acima. O conversor compara com todas as cores RAL Classic e RAL Design usando CIEDE2000 e lista as mais próximas com a diferença de cada uma.
- **Por que outros conversores dão um RAL diferente para o mesmo hex?** Eles usam outras tabelas de valores de tela das cores RAL ou uma fórmula de distância mais simples. Os valores de tela públicos das cores RAL diferem em cerca de ΔE 3, então candidatas próximas podem trocar de posição; compare as primeiras num leque de cores.
- **Dá para converter RGB para RAL?** Sim: digite os três valores, por exemplo 15, 67, 54. Valores Lab também funcionam, escritos como lab 25 -20 5.
- **É grátis mesmo?** Sim: sem anúncios, sem cadastro, sem limites.
- **Vocês enviam minha foto?** Não. A foto é medida dentro desta página, no seu aparelho. Não há envio nem link de compartilhamento para fotos.
- **Um agente de IA pode usar?** Um agente pode abrir a página com ?hex=RRGGBB para obter as cores RAL mais próximas de um código, ou com ?src= e uma foto pública. Uma consulta no servidor que retorna as correspondências em JSON está planejada, mas ainda não está no ar.
- **Quem faz isto?** Unmake Labs (Julien Salomon). Contato: hello@unmakelabs.com.

## Related pages

- [Identificar cor RAL por foto](https://unmakelabs.com/pt-br/identificar-cor-ral/)
