Kleure HWB
HWB (Hue, Whiteness, Blackness) is 'n voorgestelde standaard vir CSS4.
HWB Sakrekenaar
rgb(255; 0; 0)
#ff0000
hsl(0, 100%, 50%)
H:
W:
B:
HWB (Hue, Whiteness, Blackness) is 'n voorgestelde standaard vir CSS4.
HWB word (nog) nie in HTML ondersteun nie, maar dit word voorgestel as 'n nuwe standaard in CSS4.
Terwyl jy vir CSS4 wag, kan jy W3Schools se kleurbiblioteek insluit en HWB as 'n HTML-kenmerk soos volg gebruik:
<div
data-w3-color="hwb(60, 50%, 0)">
<p>London is the capital city of England.
It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants.</p>
</div>
<script src="/lib/w3color.js"></script>
Die JavaScript-biblioteek wat in die voorbeeld hierbo gebruik word, kan afgelaai word vanaf
https://www.w3schools.com/lib/w3color.js