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.
![]() |
|
![]() |
|
![]() |
|
![]() |
A question we frequently get asked is, "how do we... Read More
Well, a logo for your business. Why is it important?... Read More
Does your website make you any money? Does it SAVE... Read More
Making a poorly designed website is one of the easiest... Read More
What is the relationship between Marketing and Web designing? How... Read More
When building your website you might not have a large... Read More
Your web site has been up for a few months... Read More
The "Wow" factor that accompanied the introduction of streaming media... Read More
Web design is a very competitive area and there is... Read More
A search for "web design" on Google returns more than... Read More
Effective navigation stands out. It's clear, obvious, and highly visible.You'll... Read More
It starts off simply; a few HTML pages, a few... Read More
A long, long time ago? In a galaxy far, far... Read More
Drop Capitals are frequently used in many newspapers, books and... Read More
What are websites? Are they sales tools for vendors and... Read More
In my web surfing adventures, I've found a few site... Read More
The internet is full of web design companies pleading for... Read More
Tips to brand your websiteInclude your logo in all pages.... Read More
Websites, there are literally billions of them out there in... Read More
If you're not getting a lot of traffic to your... Read More
Your web site is like your car. Both are significant... Read More
Increasing the length of time a visitor is on your... Read More
Since I'm a web designer, I have a tendency to... Read More
Your website design may be affecting your sales in ways... Read More
Why your site should be developed with CSS and semantic... Read More
Well, you've got your product, started your home business, and... Read More
One visit does not make a sale. Be sure to... Read More
Are you serious about get this website done fast and... Read More
Q: Should I build and maintain my business Web site... Read More
In this article I will give advice and tips of... Read More
Have you ever thought about the real stories behind all... Read More
Easy That's how you'd like life to be, right? Especially... Read More
10 Ways Web Site Text Can Impact Your Reader's Buying... Read More
To create professional websites is not an easy task by... Read More
Website design firms come in all shapes and sizes.When choosing... Read More
Content is undoubtedly the most important element of a website.... Read More
Tips to brand your websiteInclude your logo in all pages.... Read More
I've written about META tags in the past, and I... Read More
One of the biggest problems with Web sites is that... Read More
This is a very perfunctory look at the website code... Read More
Public domain gives you a head start creating ebooks, ecourses,... Read More
Most people will agree there is nothing more annoying than... Read More
A picture is worth a thousand words.And it still is... Read More
You've come up with a great product. You've got the... Read More
In this era of ultra-sophisticated internet marketing and web design,... Read More
The internet continues to grow and has become the default... Read More
We would all like to have the best looking website,... Read More
Are you building a direct sales or mlm business online?... Read More
Here are a few programs I can't do without. They're... Read More
Yes, in a world that is obsessed with makeover madness,... Read More
Whenever singer John Mayer sings his romantic song, "Your Body... Read More
There are plenty of web sites out there in which... Read More
Know what you wantMake sure you know why you... Read More
As part of your event planning you should seriously consider... Read More
Web usability is perhaps the most important factor in any... Read More
1. Who needs an artists website?Not everyone! If you are... Read More
Are you in a dilemma whether to create a mini... Read More
Copyright 2005 Robert EvansSetting yourself up to earn a steady... Read More
There is nothing wrong with making your own website if... Read More
Do use a consistent look and feel Your site should... Read More
Your web site is like your car. Both are significant... Read More
I often wonder how serious people are when it comes... Read More
Geometric designs come in all shapes and sizes? and lines.... Read More
If you are going to have a web presence for... Read More
Before you start worrying about marketing your website on the... Read More
They say the eyes are the window to the soul.... Read More
Web Design |