底層運作原理
Type or paste a colour such as #3b82f6, rgb(59 130 246), hsl(217 91% 60%) or tomato. The tool shows the same colour in every format and its contrast against white and black.
詳細操作步驟
Paste a colour in any format.
Copy the format you need.
Check the contrast ratio.
核心功能與效能優勢
- HEX, RGB, HSL, OKLCH
- Alpha channel
- WCAG contrast ratio
- CSS colour names
運算方法、公式與技術標準
Colours are parsed to sRGB, then converted to HSL and OKLCH. Contrast uses the WCAG relative luminance formula.
實作範例與邊界案例
#3b82f6
HSL
hsl(217, 91%, 60%)
使用限制與精準度說明
- • Colours outside the sRGB gamut, such as display-p3, are not supported.
- • Rounded values can differ by 1 when converted back.
瀏覽器本地運算與隱私保障
傳統線上轉換網站會將您的文件、文字片段或影音檔案上傳至遠端伺服器。顏色色彩格式轉換器 (HEX, RGB, HSL, OKLCH) 完全在您的瀏覽器分頁內運行:
您的檔案與文字都在裝置本機計算,不會傳送內容至任何後端伺服器。
Microdeck 不會記錄或儲存您在工具內貼上的任何檔案或程式碼。
所有暫存結果僅存在目前分頁記憶體中,重設或關閉分頁後即刻清除。
常見問題 (FAQ)
What is OKLCH?
A perceptual colour space where equal lightness steps look equal, now supported in modern CSS.
Is anything uploaded?
No. Everything runs in your browser and your data stays on your device.