top of page

HEX Value

In CSS, a color can be specified using a hexadecimal value in the form:

#rrggbb

Where rr (red), gg (green) and bb (blue) are hexadecimal values between 00 and ff (same as decimal 0-255).

For example, #ff0000 is displayed as red, because red is set to its highest value (ff) and the others are set to the lowest value (00).

Shades of gray are often defined using equal values for all the 3 light sources:

21.PNG
22.PNG

© 2020 by Web Laboratory Instructor Guide. Proudly created with Wix.com

bottom of page