# Codice RAL da foto

> Appoggia un foglio di carta bianca sulla porta, sul cancello o sul macchinario, scatta una foto, tocca il colore e poi il foglio. La luce viene corretta e ottieni i cinque colori RAL più vicini, ciascuno con la sua differenza.

Human page: https://unmakelabs.com/it-it/codice-ral-da-foto/. This is the version for AI agents.

## What it does

Codice RAL da foto: trova il colore di tutto ciò che puoi fotografare. Appoggia un foglio di carta bianca sulla porta, sul cancello o sul macchinario, scatta una foto, tocca il colore e poi il foglio. La luce viene corretta e ottieni i cinque colori RAL più vicini, ciascuno con la sua differenza.

## Perché una semplice foto sbaglia il colore RAL

La fotocamera tira a indovinare la luce. Sotto lampade calde una porta grigia sembra beige, all'ombra sembra azzurra e la vernice lucida riflette il cielo. Un foglio di carta bianca nella stessa luce mostra alla pagina com'era il «bianco», così può togliere l'effetto della luce prima di confrontare con i colori RAL.

## Cosa indica il valore di differenza

Il ΔE (CIEDE2000) misura quanto due colori sono distanti per come li vede l'occhio umano: sotto circa 1,5 sembrano uguali, fino a 3 sono molto simili, sopra 6 sono colori diversi. Gli stessi valori RAL pubblicati per lo schermo differiscono di circa 3, quindi considera i primi risultati come una rosa da verificare su una mazzetta RAL.

## Facts

- **Confronta con:** RAL Classic (210) e RAL Design (1.825), i primi 5 per ciascuno
- **Corregge con:** Carta bianca, cartoncino grigio 18% o il nostro cartoncino stampabile
- **Restituisce:** ΔE, un giudizio chiaro, HEX/RGB/Lab/CMYK, campione colore in PNG
- **Privacy:** Misurato sul tuo dispositivo; nulla viene caricato

## How a person does it

1. **Foto con il foglio bianco.** Appoggia un foglio da stampante ben disteso sulla superficie, nella stessa luce e senza sole diretto. Scatta la foto frontalmente, senza flash.
2. **Tocca il colore, poi il foglio.** Tocca il centro di una zona uniforme del colore (o trascina per misurare un'area), poi tocca il foglio. Il cerchio tratteggiato indica dove si presume sia il foglio.
3. **Leggi i risultati.** Il colore RAL più vicino compare accanto al tuo, con gli altri quattro sotto e una nota sull'affidabilità della foto. Salva il campione colore o copia il codice.

## 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/it-it/codice-ral-da-foto/?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

La luminosità è l'aspetto più difficile da ricavare da una foto (esposizione, quanto è bianco il foglio), quindi nella classifica pesa la metà e viene indicato se il tuo colore è più chiaro o più scuro del risultato. Le finiture metallizzate, perlate e fluorescenti non si possono valutare da una foto.

## Not done by this tool

- Non sostituisce una mazzetta RAL fisica per l'approvazione finale
- Non fornisce codici NCS o Pantone (sistemi sotto licenza)
- Non misura finiture metallizzate, perlate o fluorescenti
- Non carica né conserva la tua foto

## 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

Funziona nel browser: la foto resta sul tuo dispositivo. Non viene caricato nulla e il link al risultato contiene solo il codice colore.

## FAQ

- **Come trovo il colore RAL del mio portone?** Attacca con del nastro un foglio bianco da stampante sul portone, scatta una foto alla luce del giorno senza sole diretto, aprila qui, tocca il portone e poi il foglio. Verifica il primo risultato su una mazzetta RAL in colorificio.
- **Perché serve un foglio bianco?** Senza il foglio la pagina conosce il colore solo come l'ha interpretato la fotocamera. Con una luce calda in casa o all'ombra, questo da solo può spostare il risultato di diversi colori RAL; con il foglio nell'inquadratura, la pagina corregge prima la luce.
- **Funziona su iPhone o su telefoni Android?** Sì. Tocca «Scatta o scegli una foto» e usa la fotocamera, oppure scegli una foto che hai già. Non si installa nulla e la foto resta sul telefono.
- **È davvero gratis?** Sì: niente pubblicità, niente registrazione, nessun limite.
- **Caricate la mia foto?** No. La foto viene misurata all'interno di questa pagina, sul tuo dispositivo. Non c'è alcun caricamento né link di condivisione per le foto.
- **Può usarlo un agente IA?** Un agente può aprire la pagina con ?hex=RRGGBB per ottenere i colori RAL più vicini a un codice, oppure con ?src= e una foto pubblica. Una ricerca lato server che restituisce le corrispondenze in JSON è prevista, ma non ancora attiva.
- **Chi lo realizza?** Unmake Labs (Julien Salomon). Contatto: hello@unmakelabs.com.

## Related pages

- [Convertitore hex in RAL](https://unmakelabs.com/it-it/convertitore-hex-ral/)
