🎨 Tailwind CSS Color Palette
Browse the full Tailwind CSS palette of 22 colour families at 11 shades and click a swatch to copy it in various formats.
📐 計算公式 / 原理
調色盤過濾:色名或任一色值包含關鍵詞即命中(忽略大小寫);色塊文字色按 WCAG 對比度取較大者:與白 1.05/(L+0.05)、與黑 (L+0.05)/0.05,分界 L≈0.179(不再用亮度 > 0.5 閾值)
Tailwind CSS v3.4 官方色板共 22 色系 × 11 階(50–950),點選色塊可複製各種格式色值;用於遵循 Tailwind 設計體系的配色。
📚 深度解析:Tailwind CSS 配色板
💡 常見使用場景
- 用 Tailwind 配色。
- 取 primary/surface。
- 對齊設計系統。
瀏覽 orange 檔
輸入:選 orange。
處理:列 50~950。
輸出:色塊與類名/HEX 可複製。
❓ 常見問題(FAQ)
- 和自定義色?
- 可延用同檔位思路自建,保證層級一致。
- 類名怎麼對應?
- 如 bg-orange-500 對應 500 檔 HEX,可類名與變數混用。
- 會儲存或上傳我的內容嗎?
- 結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Tone numbering | each hue runs 50 through 950 from lightest to darkest | Tailwind CSS colour palette |
| Perceptually uniform space | recent versions derive tones in oklch for even lightness steps | CSS Color Module Level 4 |
| Contrast check | text and surface tones need 4.5:1 for readability | WCAG 2.2 (1.4.3) |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準