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.
Joe Duchesne is the president of Yowling.com. They specializes in business web hosting and also offers you the ability to design a website online using their easy to use ecommerce website builder. Reprint freely as long as you provide a keyword rich clickable link back to our website.
![]() |
|
![]() |
|
![]() |
|
![]() |
There is a widespread confusion among lots of new website... Read More
If your Web site doesn't project a professional and polished... Read More
You've made your website, added a great title and keywords... Read More
I've seen articles (and websites) that suggest you can buy... Read More
For those not familiar with CSS Hacks, they are ways... Read More
Don't just put your slogan in the title tag when... Read More
The internet is full of web design companies pleading for... Read More
Many Internet sites that try to sell you something have... Read More
So you've decided to take the plunge. You know that... Read More
CNN.com's designers have gone out of their way to make... Read More
As of September, Smartads went through what so many have... Read More
I hate to imagine that in your web development project... Read More
Graphics are fun, but if you put in too many... Read More
Almost everything is available on the web? products, services, e-books,... Read More
Ever wonder how HTML color codes are put together? For... Read More
You're all ready to get started creating your web presence... Read More
What are websites? Are they sales tools for vendors and... Read More
You've designed your logo, and you're ready to print your... Read More
You have only 10 seconds to impress your potential buyer.... Read More
If there's one thing that I've learnt so far, it's... Read More
You spend time and money promoting your website; but what... Read More
I see a lot of mistakes, but here are the... Read More
There are lots of websites out there that do little... Read More
Building a website that is exactly what you want and... Read More
Making your site accessible means making it available to be... Read More
Remember the famous line from the movie Field of Dreams,... Read More
Back to basics. Forget funky design, good copywriting is the... Read More
Do you want to use unsafe web colors without offending... Read More
Many web site designers don't design their sites for the... Read More
What do the key words represent?Key words - these are... Read More
All websites have a homepage. It is the most important... Read More
A question we frequently get asked is, "how do we... Read More
Web Site Awards are given from other sites to reward... Read More
(Making Your Graphics Work For You)It's no secret that a... Read More
Physical therapists have unique web presence needs. An effective site... Read More
Due to the large number of people offering website design... Read More
The time it takes to load your site can make... Read More
A well designed web site is great to have, but... Read More
So how do you know when your graphic designer costs... Read More
Usability isn't only for Web design. It's also applicable in... Read More
Well it is not Elvis, that's for sure.I am a... Read More
Even if you're not an accomplished webmaster you can still... Read More
For those not familiar with CSS Hacks, they are ways... Read More
Ever browse across a website that took ten million years... Read More
One of the simplest things you can do to give... Read More
The internet continues to grow and has become the default... Read More
Designing your website can be a difficult task especially if... Read More
Your web site has been up for a few months... Read More
The most popular method to build webpages today is to... Read More
Almost everything is available on the web? products, services, e-books,... Read More
Web Site Awards are given from other sites to reward... Read More
This article is the result of a conversation I had... Read More
There is a widespread confusion among lots of new website... Read More
Did you know that many folks make "buying decisions" when... Read More
Web design is a very competitive area and there is... Read More
Are you looking to create the perfect website? A complete... Read More
Don't make a splash!Are you thinking about using a splash... Read More
Websites, there are literally billions of them out there in... Read More
They say the eyes are the window to the soul.... Read More
Yes, in a world that is obsessed with makeover madness,... Read More
Most people will agree there is nothing more annoying than... Read More
There are several very good reasons why you should consider... Read More
Cascading Style Sheets (CSS) allows you to create fast loading... Read More
If you are going to be placing ads on your... Read More
Good websites stand out from the masses of boring, hard... Read More
Does your website make a good first impression? Is the... Read More
Web Design |