色碼轉換器
開發者工具HEX、RGB、HSL與CMYK互轉
答案速覽
Color Code Converter: HEX, RGB, HSL and CMYK. Color Code Converter uses standard developer formulas to compute accurate results instantly.
HEX#3b82f6
RGB59, 130, 246
HSL217°, 91%, 60%
就近 Tailwindblue-500
換算步驟
- 1HEX #3b82f6 → RGB(59, 130, 246)
- 2HSL = (217.2°, 91.2%, 59.8%) — hue 217° places it in blue territory
- 3Nearest Tailwind palette color: blue-500 (ΔE² 0)
- 4下方梯度按黑白混合生成——生產級色板建議用 OKLCH 色彩空間工具獲得知覺均勻梯度。
CSS 程式碼片段
--color-primary: #3b82f6; --color-primary-rgb: 59 130 246; color: #3b82f6; color: rgb(59 130 246); color: hsl(217 91% 60%); background-color: color-mix(in srgb, #3b82f6 50%, white);
明暗梯度(淺 → 深)
需要 WCAG 對比度校驗請用「顏色對比度檢查器」;需要 CMYK/HSV/印刷格式請用生活分類的「顏色轉換器」(五制式)。本工具偏開發者程式碼輸出。
這個工具對你有幫助嗎?
怎麼用
- Paste or type content: drop code/text into the Color Code Converter or fill the parameters.
- Choose mode/options: switch format, rules or processing as needed.
- Live output: results appear instantly — nothing is submitted, data stays in your browser.
- One-click copy: copy the output straight into your development environment.
核心要點
- Color Code Converter is a free online developer tool — open and use, no sign-up.
- All calculations run locally in your browser; your data never leaves the device.
- Key capability: HEX, RGB, HSL and CMYK.
- Results come with formulas and reference tables so you can verify every number.
原理與公式
Color Code Converter formula
Color Code Converter uses standard developer formulas to compute accurate results instantly.
常見問題
How do I use the Color Code Converter?
Open the page and fill in the input fields — results update automatically. HEX, RGB, HSL and CMYK.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.
相關工具
相關指南
來源與更新
Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07
最近更新:
本頁公式與內容經YiJianSuan團隊覆核,僅供學習參考,實際業務請以官方口徑為準。
內容由YiJianSuan編輯團隊維護並定期覆核,更新與審核流程詳見編輯規範.
引用本頁: YiJianSuan. 色碼轉換器[EB/OL]. https://www.yijiansuan.com/zh-TW/c/dev/dev-color
本工具提供的結果僅供參考,不構成任何專業建議,請以官方核算為準。