Quantcast
Channel: Web Design Informations » Web Resources
Viewing all articles
Browse latest Browse all 34

The Essentials of Guides – Breaking Down the Basics

$
0
0

How to Understand HTML Color Codes You might be wondering how HTML color codes are combined together. The color codes are made up of number and letter combinations put together, which at first sight might seem nonsense to you. The truth is, HTML color codes are written the way they are for good and specific reasons. The hexadecimal system, or commonly called as hex, is a mathematical system based on the number 16 and uses the symbols 0 to 9 and the letters A to F. 0 to 9 in this case is the same 0 to 9 in our decimal system but A to F actually represents the numbers from 10 to 16. It is good to know that HTML color codes are actually six hex numbers that represent around 16.7 million color combinations. Theses colors uses the RGB model where the R represents red, the G represents green, and the B represents blue. An example of an HTML color code which represents a common color looks like this: #FFFFFF. In this example the first two hex digits represent red, the second set represents green, and the final two represents blue.
Finding Parallels Between Charts and Life
If you vary the combinations of these three colors you will add up to 16.7 million color combinations. The values of the RGB is a number between 0 to 255, 255 being the hex number FF. So if you want to get a white, which is the maximum values for red, green, and blue, in the decimal system would give you 255, 255, 255 but written in hex is #FFFFFF, which is color code in HTML. Here we find that RGB and HTML color codes actually represent the same color model.
9 Lessons Learned: Guides
Here are some of the most common or basic colors in HTML color codes. Black can be written as 000000 which means that there are no colors. FFFFFF is white where FF represent full color for all three colors, and we know that combining all colors give us a white color. All red is represented as FF0000 where green and blue have no color. 00FF00 is full green and 0000FF is full blue or all blue. Yellow is a combination of full red and full green and can be represented by FFFF00. Gray is a mixture of middle reds, middle greens, and middle blues and in HTML color code in 808080, where 80 is the hex representation for 128 in decimal. The # sign is generally put in front of the HTML color code although it is not necessary when all 6 digits are specified. If you want to do some hex to decimal conversion, a scientific calculator help you out with this; simply click the ‘hex’ button, key in your number, and then click the ‘dec’ button.


Viewing all articles
Browse latest Browse all 34

Latest Images

Trending Articles



Latest Images