🎨 Color Picker & Converter

Pick or enter a colour and convert between HEX, RGB, HSL, HSV and CMYK, with preset swatches and one-click copy.

%
#4151E1
主色
📐 計算公式 / 原理
V = max(R,G,B);S = (max−min)/max;H 由最大通道分段求得;CMYK = 1 − RGB/255(減色法近似)
基於標準色彩空間轉換:HEX 與 RGB 為 8 位三通道,HSL/HSV 將色相、飽和度、明度分離,CMYK 由 RGB 按減色法近似換算;用於跨格式取色與印刷輸出參考。
RGB、HEX、HSL 均可直接輸入

📜 歷史記錄

🎯 預設色板

📊 顏色分析

🎨 配色建議

配色標籤按 HSL 色相旋轉生成互補、相鄰與三角色;下方資料卡的「RGB 反相色」是通道取反,並非色輪互補。點選色塊即可繼續編輯。

♿ 文字可讀性(WCAG)

以當前顏色和背景色計算對比度;可調整背景色以檢查實際介面。

Formula & Standard References

Item Formula / Note Source / Standard
Hex notation #RRGGBB encodes three channels of 0-255 in hex CSS Color Module Level 4
HSL conversion hue spans 0-360 degrees, saturation and lightness span 0-100 percent CSS Color Module Level 4
Gamma transfer sRGB uses an effective gamma near 2.2 before linearization IEC 61966-2-1 (sRGB)
⚠️ 使用說明與注意事項