# カラーコード（hex）→RAL 変換ツール

> #0F4336のようなhexコード、または15, 67, 54のようなRGB値を入力してください。入力した色と最も近いRAL色を並べて表示し、それぞれの色差と、近い色と言えるかどうかを示します。

Human page: https://unmakelabs.com/ja-jp/hex-to-ral/. This is the version for AI agents.

## What it does

hexやRGBを最も近いRAL色に変換します。 #0F4336のようなhexコード、または15, 67, 54のようなRGB値を入力してください。入力した色と最も近いRAL色を並べて表示し、それぞれの色差と、近い色と言えるかどうかを示します。

## hexからRALへの「正確な」変換は存在しません

RAL色は実物の塗料見本で、hexは画面上の色です。1,670万色あるhexカラーの大半には対応するRAL色がなく、RAL色について公開されているhex値もそれ自体が近似値です。そのため、最も近いRAL色をそれぞれの差とともに示すのが正直な答えであり、このツールはそれを表示します。

## 結果の見方

ΔEが1.5未満なら画面上ではほぼ同じ色に見え、3までは近い色、6までは違いが分かる程度です。それを超える場合は近いRAL色がありません。Classicの色の間を埋める1,825色を持つRAL Designを検討してください。

## Facts

- **入力:** hex（#RRGGBBまたは#RGB）、RGB、Lab
- **出力:** 最も近いRAL Classic 5色、RAL Design 5色
- **色差:** CIEDE2000と分かりやすい判定
- **リンク:** ?hex=RRGGBBで結果を直接開けます

## How a person does it

1. **コードを入力.** hexコードを#付きでも#なしでも貼り付けるか、RGBの3つの数値をカンマまたはスペースで区切って入力します。
2. **並べて比較.** 入力した色と最も近いRAL色が大きな2つの色見本で表示され、その下に次の候補4色とそれぞれの色差が表示されます。
3. **コピー・保存.** RALコードやこの結果へのリンクをコピーしたり、色見本カード、CSV、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/ja-jp/hex-to-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

色の見え方は画面によって異なり、RAL色の画面表示用の値も公開元によって数ΔEの差があります。塗料に使う場合は、実物の色見本帳でRALコードを確認してください。このツールでは、どのコードを確認すればよいかが分かります。

## Not done by this tool

- 「完全に一致する」RAL色は示しません（大半のhexカラーには存在しません）
- NCSやPantoneには対応していません
- ツヤや質感は考慮しません
- データは不要で、保存もしません

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

ブラウザ内で動作し、写真は端末から出ません。アップロードは一切なく、結果のリンクに含まれるのはカラーコードだけです。

## FAQ

- **hexをRALに変換するには？** 上の欄にhexコードを入力してください。CIEDE2000を使ってすべてのRAL ClassicとRAL Designの色と比較し、最も近い色を色差とともに一覧表示します。
- **同じhexなのに、ほかの変換ツールと違うRAL色になるのはなぜですか？** ほかのツールは、別のRAL画面表示値の表や、より単純な色差の計算式を使っているためです。公開されているRALの画面表示値は互いにΔE 3ほど異なるため、近い候補同士の順位が入れ替わることがあります。上位の数色を色見本帳で見比べてください。
- **RGBをRALに変換できますか？** はい。15, 67, 54のように3つの値を入力してください。Lab値もlab 25 -20 5のように入力すれば使えます。
- **本当に無料ですか？** はい。広告なし、登録不要、回数制限もありません。
- **写真はアップロードされますか？** いいえ。写真はお使いの端末上で、このページ内で測定されます。アップロードも、写真の共有リンクもありません。
- **AIエージェントでも使えますか？** エージェントは ?hex=RRGGBB を付けてページを開くと、そのコードに近いRAL色を取得できます。公開されている写真なら ?src= も使えます。一致結果をJSONで返すサーバー側の検索は予定中で、まだ公開していません。
- **運営者は？** Unmake Labs（Julien Salomon）です。連絡先：hello@unmakelabs.com

## Related pages

- [写真からRAL色を判定](https://unmakelabs.com/ja-jp/ral-color-from-photo/)
