HWB是一種將RGB色彩模型中的點在圓柱坐標系中的表示法。類似於HSL和HSV。它是由HSV的發明者Alvy Ray Smith(英語:Alvy Ray Smith)於1996年開發的,用意是解決HSV的某些問題。HWB能更直觀的使用[1],且能加速計算速度。 H: 色相(Hue),與HSL和HSV一樣,範圍是0°~360°。 W:白色(White),白色的濃度,範圍是0%~100%。 B:黑色(Black),黑色濃度,範圍是0%~100%。 HWB被應用在CSS4。 轉換方式 HWB與HSV非常類似,因此轉換公式非常簡單[2]。HWB轉換前,白色和黑色總和需要在100%以下,如果超過的話按比例降低至100%。 更多資訊 , ... HSV 轉 HWB HWB 轉 HSV RGB 轉 HWB H = H W = ( 1 − S ) V B = 1 − V {\displaystyle {\begin{aligned}H&=H\\W&=(1-S)V\\B&=1-V\end{aligned}}} H = H S = 1 − W 1 − B V = 1 − B {\displaystyle {\begin{aligned}H&=H\\S&=1-{\frac {W}{1-B}}\\V&=1-B\end{aligned}}} H = … W = min ( R , G , B ) B = 1 − max ( R , G , B ) {\displaystyle {\begin{aligned}H&=\ldots \\W&=\min(R,G,B)\\B&=1-\max(R,G,B)\end{aligned}}} 關閉 [1]§7 HWB Colors: hwb() function. CSS Color Module Level 4. W3C. 15 April 2014 [2020-09-02]. (原始內容存檔於2015-07-09). [2]Smith, Alvy Ray. HWB — A More Intuitive Hue-Based Color Model (PDF). Journal of Graphics, GPU and Game tools. 1996, 1 (1): 3–17 [2020-09-02]. (原始內容存檔 (PDF)於2015-03-11). This is the original paper describing the HWB color model. Wikiwand - on Seamless Wikipedia browsing. On steroids.