Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

HWB color model

From Wikipedia, the free encyclopedia
Color space model

HWB (Hue, Whiteness, Blackness) is acylindrical-coordinate representation of points in anRGB color model, similar toHSL and HSV. It was developed byHSV’s creatorAlvy Ray Smith in 1996 to address some of the issues with HSV. HWB was designed to be more intuitive for humans to use[1] and slightly faster to compute. The first coordinate, H (Hue), is the same as the Hue coordinate inHSL and HSV.W andB stand forWhiteness andBlackness respectively and range from 0–100% (or 0–1). The mental model is that the user can pick a main hue and then “mix” it with white and/or black to produce the desired color.[2]

HWB was included in theCSS Level 4 Color Module in 2014.[1]

Conversion

[edit]

HWB is very closely related toHSV, and therefore the conversion formulas are fairly simple.[2] Before conversion from HWB, if the sum of whiteness and blackness exceeds 100%, both components must be scaled back proportionally to make the sum 100%.

HSV to HWBHWB to HSVRGB to HWB
H=HW=(1S)VB=1V{\displaystyle {\begin{aligned}H&=H\\W&=(1-S)V\\B&=1-V\end{aligned}}}H=HS=1W1BV=1B{\displaystyle {\begin{aligned}H&=H\\S&=1-{\frac {W}{1-B}}\\V&=1-B\end{aligned}}}H=W=min(R,G,B)B=1max(R,G,B){\displaystyle {\begin{aligned}H&=\ldots \\W&=\min(R,G,B)\\B&=1-\max(R,G,B)\end{aligned}}}

Swatches

[edit]

TheCSS Color Level 4 draft specification[1] includes a number of HWB example color swatches.[3]

0° Reds
B
W
0%20%40%60%80%100%
0%
20%
40%
60%
80%
100%
30° Red-Yellows (Oranges)
B
W
0%20%40%60%80%100%
0%
20%
40%
60%
80%
100%
60° Yellows
B
W
0%20%40%60%80%100%
0%
20%
40%
60%
80%
100%
90° Yellow-Greens (Chartreuse Greens)
B
W
0%20%40%60%80%100%
0%
20%
40%
60%
80%
100%
120° Greens
B
W
0%20%40%60%80%100%
0%
20%
40%
60%
80%
100%
150° Green-Cyans (Spring Greens)
B
W
0%20%40%60%80%100%
0%
20%
40%
60%
80%
100%
180° Cyans
B
W
0%20%40%60%80%100%
0%
20%
40%
60%
80%
100%
210° Cyan-Blues (Azures)
B
W
0%20%40%60%80%100%
0%
20%
40%
60%
80%
100%
240° Blues
B
W
0%20%40%60%80%100%
0%
20%
40%
60%
80%
100%
270° Blue-Magentas (Violets)
B
W
0%20%40%60%80%100%
0%
20%
40%
60%
80%
100%
300° Magentas
B
W
0%20%40%60%80%100%
0%
20%
40%
60%
80%
100%
330° Magenta-Reds (Roses)
B
W
0%20%40%60%80%100%
0%
20%
40%
60%
80%
100%


References

[edit]
  1. ^abc"§7 HWB Colors: hwb() function".CSS Color Module Level 4.W3C. 15 April 2014.
  2. ^abSmith, Alvy Ray (1996)."HWB — A More Intuitive Hue-Based Color Model"(PDF).Journal of Graphics, GPU and Game tools.1 (1):3–17. This is the original paper describing the HWB color model.
  3. ^CSS Color Module Level 4
CAM
CIE
RGB
Y′UV
Other
Color systems
and standards
For the vision capacities of organisms or machines, see Color vision.


Stub icon

This color-related article is astub. You can help Wikipedia byexpanding it.

Retrieved from "https://en.wikipedia.org/w/index.php?title=HWB_color_model&oldid=1275469527"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp