Fact of the Day: 03/09/2021
Yesterday’s fact explored RGB or RGBA as common ways to represent colors. Another commonly used color type is called hex (short for hexadecimal). This type of code consists of a hash symbol (#) followed by six digits, which may be letters or numbers. Like the RGB color code, the hex color code sets the amount of red, green, or blue, but it does so differently. The six digits are, really, just three pairs of digits. Each pair sets the value for red, green, or blue. So the first two digits are used to set the amount of red; the middle two digits set the amount of green; and the last two digits set the amount of blue. The color white is specified by #FFFFFF, which may also be abbreviated as #FFF. The letters FF represent the highest value of a given color (like 255 for RGB).
Reference(s) & Further Exploration:
- If you’d like to learn more about how the hex system works and how the codes are generated, check out this article: https://www.shutterstock.com/blog/how-hex-colors-work
- If you’d like to learn more about how hex is used in CSS, check out this article: https://www.w3schools.com/css/css_colors_hex.asp
Fact Author: Ace
New to Pearson Online Academy? Learn More Here.
Join Us on the 1st and 3rd Fridays of Each Month at 1:30 PM EST!
In Ms. Jones’ LiveLesson Room.