Understanding How HTML Color Codes Work



Get Web Design Tips and Tricks on mps-web-design.com. Understanding How HTML Color Codes Work topic will increase your understanding on Web Design Tips and Tricks. We at mps-web-design.com only provide news, articles, information in Web Design Tips and Tricks. Web Design Tips and Tricks at mps-web-design.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.

Ever wonder how HTML color codes are put together? For the beginner, it can look like lots of numbers and letters that make no sense. In reality, HTML color codes are written that way for a specific reason that we'll look at in this article.

Introduction to the Hexadecimal System

In mathematics, the hexadecimal or simply hex is a numeral system with a base of 16 usually written using the symbols 0-9 and A-F. The numbers 0-9 have the same value as in the decimal system but starting with the letter A, the value keeps going up one up to the value of 16. A is worth 10, B is worth 11 and so forth until you get to F which is worth 16.

How the HTML Color Codes are put together

HTML Color codes are composed of six hex numbers that represent a possible 16.7 million color combinations. The hex color codes are built on the RGB color model. R stands for red, G for green, and B for blue. With your typical html code that looks like this: #FFFFFF it breaks down as follows. The first two hex digits #FFFFFF represent 'red'. The second set of two hex digits #FFFFFF represent the color green. The third and final set of two hex digits #FFFFFF represent the color blue.

A brief overview of the RGB model

The RGB color model, like the HTML color model can represent a total of 16.7 million colors. By varying the amoung of red, green, and blue, one can come up with any of 16.7 million colors. Each RGB value is represented by a number from 0 to 255. So a set of RGB values for the color white for instance, would look like this: 255, 255, 255.

Putting HTML and RGB Together

We've already established the hex numeral system with it's number range between 0 to 16. Now, when you combine two hex numbers, you can represent any number between 0 and 255. As you can see, RGB and HTML color codes represent the same color model.

Websafe Color Palette

Years ago, monitors could only display 256 colors. These monitors were still popular when HTML was first put together. As such, it was necessary to put together a list of colors that web designers could be sure any given monitor could properly display. Web safe colors are the result. The websafe color palette is made up of 216 colors.

It is always good practice to pick standard colors across the board, but it is no longer absolutely necessary to stick with web safe colors. Doing so now is more for purposes of holding to standard than it is for necessity. One exception to this rule may be developing websites for cellphones and PDA's. Having said that, these devices are now surpassing this barrier as well.

#FFFFFF represents the color white. #000000 represents the color black with every other color in between. I hope you now have a much better idea of why HTML color codes are look the way they do.



Skin Lightening Report. - This report shows you how to get rid of melasma, freckles, hyperpigmentation, skin discolorations and other pigment problems.
Magic Tricks From 4-Magic-Tricks.Com. - The Most Powerful Magic Tricks You Can Do, Fully Explained with Color Photographs. Plus a Ton of Free Stuff and Bonus Offers.


Article Index: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79


More Articles:


1. Make your web site Super-Sticky
With web sites being more common than ever, people are turning to the web to find products and services where they may have used other mediums previously. In such a cluttered on-line world (and getting busier every day), you need to have something on your site that grabs people's attention and more importantly keeps them coming back again and again. The first thing that you need to make sure is that the content you have is current and if possible updated regularly (regularly may mean different …

2. Do not let Flash take toll of your web site.
Flash as the latest fad in web design The use of Flash has picked momentum in recent years and web has started to look more visually appealing and trendier than ever before. The growing acceptability of Flash to enliven web site is not only restricted to designers alone but it is increasingly finding its lovers across all displines of web technology. In sphere of web design professionals, beginners as well as considerably experienced web designers are trying their hands on Flash to showcase thei…

3. A Crash Course on Graphic Philosophy 101
Novice and professional graphic designers, we are aware that you know the basic principles of graphic philosophy. But then, as workers of art - though digital and graphic art already borders in commercial arts, there's no harm in continuously improving our craft through constant study and practice, is there? Really great graphic designers I know have come to their status because of painstaking application and study of their past works.We'll review the theoretical concepts of graphics and graphic…

4. Simple Steps to Finding a Web Designer
Simple Steps to Finding a Web DesignerStep 1. Planning While searching for the right web designer it is important to have a clear idea of what the role your new website will fill. Will it provide information to your customers? Will it serve the needs of your employees? Or will it include an online shopping ability for selling purposes? As a web designer myself, the key information I would want to know from you would be:- The role of your new website. - The intended market or audience of your Web…