Tailwind カラーパレット生成
1色から Tailwind 風の 50〜950 色階調を自動生成。デザインシステムの土台に。
Tailwind カラーパレット生成とは
Tailwindカラーパレット生成ツールとは、1つの基準色から明度の異なる色階調(50〜950)を自動生成するツールです。Tailwind CSS のカラースケールに似た、統一感のある配色を作れます。
🔒 処理はすべてブラウザ内で完結し、データは送信されません。
このツールの前提
- 処理場所
- このページのブラウザ内(JavaScript / Canvas)
- アップロード
- なし — ファイルは端末の外に出ません
- オフライン
- ページを開いた後は通信不要
Eleven steps from 50 to 950 around one hue
The scale keeps the hue and saturation of the input colour and varies lightness on a fixed ladder: 96%, 91%, 82%, 70%, 58%, 48%, 41%, 34%, 27%, 20%, 13%. The middle step (500) sits near the input colour's own lightness, so the base colour remains identifiable in the ramp.
This is not how the official Tailwind palette was made. Those colours were hand-tuned per hue — yellow's steps sit at different lightnesses than blue's — precisely because equal-lightness steps look uneven across hues. A generated ramp is consistent and slightly mechanical; the hand-tuned one is uneven and looks better.
Text contrast is the practical constraint
A step that passes contrast for body text on white is usually 600 or darker; 500 is often fine for large text only. Generating a ramp gives you the colours, not the decision — the ratio against the actual background has to be measured, and it changes if the background is not pure white.
Dark mode needs a separate ladder rather than a reversed one. Step 400 on a dark background is not the mirror of step 600 on a light one, because perceived contrast is asymmetric; inverting the ramp produces muddy mid-tones.
Wiring it into Tailwind
Tailwind 4 reads theme values from CSS custom properties, so the ramp goes into an @theme block as --color-brand-50 … --color-brand-950. Generating the ramp as CSS variables rather than Tailwind config is what makes it work with the CSS-first configuration and with runtime theme switching.
Name the scale by role rather than by hue if the palette can change — --color-brand-600 survives a rebrand, --color-blue-600 does not. The ramp values are the same; only the indirection changes, and it saves a find-and-replace later.
使い方
- 1.基準色を HEX で入力(例: #3B82F6)
- 2.「実行する」をクリック
- 3.色階調をコピー
他の方法との比較
同じ変換をする方法は 3 つあります。ブラウザ内(このページ)、サーバー側の変換サービス、デスクトップアプリ。差がつくのは速度ではなく、ファイルがどこへ行くかと、無料でどこまでできるかです。
| 観点 | このツール | サーバー側の変換サービス | デスクトップアプリ |
|---|---|---|---|
| ファイルの処理場所 | このページのブラウザ内 | ベンダーのサーバー(アップロード後) | 自分の PC(アプリをインストール) |
| アカウント | 不要 | 多くの場合必要(無料枠の制限解除に登録を求める) | 不要(ライセンス認証は必要な場合あり) |
| 無料で扱えるサイズ | サイズ制限なし(回数制限もなし) | 数ファイル/時間、または 5〜10MB 程度で課金 wall | ディスクとメモリ次第 |
| 料金 | 無料。Pro は月 $9(大きいファイルと AI 機能のみ) | サブスクが一般的。おおむね月 $7〜15(2026 年 11 月時点) | 買い切り、またはサブスク |
| オフライン | 一度開けば通信不要 | 不可 | 可 |
| 20MB を処理し始めるまで | 待ち時間なし(アップロードが無い) | アップロードが支配的(10Mbps 上りで約 16 秒) | アプリの起動のみ |
| 保証できないこと | 何も保存されないため、閉じたタブの内容は復元できません | 同じ(変換の原理は変わらない) | 同じ。ただし書式の再現はより忠実な場合がある |
サーバー側のサービスが優れている点は明確にあります。巨大なファイル、チームでの共有、変換履歴の管理、スクリプトからの自動化。逆に「1 回だけ、手元のファイルを別形式にしたい」という今回の用途では、アップロードの待ち時間と登録の手間だけが増えます。
よくある質問
元の色は変わりますか?
色相・彩度は保ったまま、明度だけを変えて 11 段階の色を生成します。
コピーできますか?
はい。各段階の HEX 値をそのままコピーして CSS や Tailwind 設定に使えます。