This gives the same number of potential shades for each of the base colors as with the RGB system, again offering 16,777,216 colors. With hexadecimal codes, the lowest possible to digit number is 00 with the highest being FF/ff, equal to 255 in base 10. The first two numbers in the array tell you how much red there is, the middle two how much green, and the last two how much blue. Base-16 number systems employ digits 0 – 9 and letters A – F (in either upper or lowercase). When colors are represented by hexadecimal numbers, every color is assigned a six digit base 16 number. To avoid confusion, the primary colors of light are different to the primary colors of pigments that you may be more familiar with, these are red, yellow and blue. Red, green and blue are light's three primary colors, and by adjusting the amount of each you can create 256 3 colors, that's 16,777,216 colors in all. All the numbers can have a value from 0 (lowest amount) to 255 (highest amount). With CSS and HTML, color codes are either the trio of RGB values or hexadecimal numbers, e.g., if you wanted to turn your text green, you can either use the CSS command color:rgb(0, 128, 0) or the command color:#008000.įor the RGB code, the numbers in brackets are the quantities of red, green, and blue, in that order.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |