Microdeck.tools 100% 瀏覽器本地執行

顏色色彩格式轉換器 (HEX, RGB, HSL, OKLCH)

New

支援輸入 HEX、RGB、HSL 或 CSS 英文顏色名稱,一鍵互轉為所有標準色彩代碼(含現代 CSS OKLCH 與 Alpha 透明度通道),並自動計算針對黑白背景的 WCAG 2.1 無障礙色彩明度對比度(Contrast Ratio)。

100% 瀏覽器本地執行 不上傳至伺服器 即時顯示結果

這個工具替您省下寶貴時間了嗎? 歡迎自願贊助,協助 Microdeck 維持免費與穩定運作 · 最低 $3 起。

底層運作原理

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.

詳細操作步驟

1

Paste a colour in any format.

2

Copy the format you need.

3

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.

探索相關微型工具

支持 Microdeck

完全自願 · $3 起 · 免註冊帳號

選擇金額 (USD):已選金額:$5

單次最低贊助金額為 $3 USD。

完全自願 · $3 起 · 將透過 Gumroad 安全結帳頁面完成。