Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Conversion  





2 Swatches  





3 References  














HWB color model







 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


HWB (Hue, Whiteness, Blackness) is a cylindrical-coordinate representation of points in an RGB color model, similar to HSL and HSV. It was developed by HSV’s creator Alvy 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 in HSL and HSV. W and B stand for Whiteness and Blackness 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 the CSS Level 4 Color Module in 2014.[1]

Conversion

[edit]

HWB is very closely related to HSV, 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 HWB HWB to HSV RGB to HWB

Swatches

[edit]

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

0° Reds

B

W

000% 020% 040% 060% 080% 100%
000%
020%
040%
060%
080%
100%
30° Red-Yellows (Oranges)

B

W

000% 020% 040% 060% 080% 100%
000%
020%
040%
060%
080%
100%
60° Yellows

B

W

000% 020% 040% 060% 080% 100%
000%
020%
040%
060%
080%
100%
90° Yellow-Greens (Chartreuse Greens)

B

W

000% 020% 040% 060% 080% 100%
000%
020%
040%
060%
080%
100%
120° Greens

B

W

000% 020% 040% 060% 080% 100%
000%
020%
040%
060%
080%
100%
150° Green-Cyans (Spring Greens)

B

W

000% 020% 040% 060% 080% 100%
000%
020%
040%
060%
080%
100%
180° Cyans

B

W

000% 020% 040% 060% 080% 100%
000%
020%
040%
060%
080%
100%
210° Cyan-Blues (Azures)

B

W

000% 020% 040% 060% 080% 100%
000%
020%
040%
060%
080%
100%
240° Blues

B

W

000% 020% 040% 060% 080% 100%
000%
020%
040%
060%
080%
100%
270° Blue-Magentas (Violets)

B

W

000% 020% 040% 060% 080% 100%
000%
020%
040%
060%
080%
100%
300° Magentas

B

W

000% 020% 040% 060% 080% 100%
000%
020%
040%
060%
080%
100%
330° Magenta-Reds (Roses)

B

W

000% 020% 040% 060% 080% 100%
000%
020%
040%
060%
080%
100%


References

[edit]
  1. ^ a b c "§7 HWB Colors: hwb() function". CSS Color Module Level 4. W3C. 15 April 2014.
  • ^ a b Smith, 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.
  • ^ CSS Color Module Level 4

  • t
  • e

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=HWB_color_model&oldid=1213274894"

    Categories: 
    Color space
    Color stubs
    Hidden category: 
    All stub articles
     



    This page was last edited on 12 March 2024, at 01:38 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki