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.
Remember your vision for your company and the brand or... Read More
If your are a new web designer, you may face... Read More
Developing a software application is not easy at all; apart... Read More
The importance of choosing your website keywords carefully is very... Read More
It's a fact, Page Not Found, known as a 404... Read More
Designing your website can be a difficult task especially if... Read More
You have only 10 seconds to impress your potential buyer.... Read More
I've seen articles (and websites) that suggest you can buy... Read More
1. Size does not equate to competencePeople sometimes assume a... Read More
They may look cutting edge, but if you want a... Read More
Flash is a powerful technology that can help you create... Read More
Websites, there are literally billions of them out there in... Read More
As the Internet blooms at an alarming rate, so as... Read More
In my web surfing adventures, I've found a few site... Read More
Using CGI scripts to add automation to your web site... Read More
Customers will form an opinion of your business as soon... Read More
When JV Media Design was formed, the year was 1995... Read More
If you need a web designer, but have no clue... Read More
Creating a web site takes thought, planning and execution. Unfortunately,... Read More
The "Wow" factor that accompanied the introduction of streaming media... Read More
Not all links are created equal.While all of your links... Read More
You just created a new web site but want to... Read More
Content is the most important part of any website.The Internet... Read More
I've written about META tags in the past, and I... Read More
Creating your own website is actually easy in today's world... Read More
In the of-line marketing world it is all about trying... Read More
First you need original content. Content is the heart beat... Read More
Writing for your web site is not the same as... Read More
Why is the quality of your text layout and design... Read More
If you are one of those who wonder how people... Read More
Making a poorly designed website is one of the easiest... Read More
To explain my point I need to first confuse the... Read More
Hello, how is your website doing?Are sales flowing in?If you... Read More
It is common sense.The more time people spend at your... Read More
Due to the large number of people offering website design... Read More
These days, it seems that everyone has a website. Unfortunately,... Read More
I ask myself that question about once a month.My website... Read More
Web Design is a very subjective process. Your idea of... Read More
I am constantly bombarded with all sorts of advertisements, single-page... Read More
In today's age of fast food and high-speed Internet, a... Read More
As an online Entrepreneur you require a successful website.One that... Read More
By following feng shui guidelines and techniques, you can build... Read More
What is the relationship between Marketing and Web designing? How... Read More
Writing for your web site is not the same as... Read More
Easy navigation and usability are one of the most important... Read More
Whether you are planning on having a website built for... Read More
Imagine spinning someone around so profoundly and for so long... Read More
FACT: 30 to 60% of visitors tend to drop off... Read More
First off, I am a designer. Now you're thinking, here's... Read More
In this article we will be looking at why you... Read More
As a webmaster, you want to keep your visitors content... Read More
If you are designing a web site for which the... Read More
This may comes as a surprise to you but, if... Read More
Thinking about designing your own website? Think again about adding... Read More
Every now and then, I receive a link exchange request... Read More
You've come up with a great product. You've got the... Read More
If you are familiar with my work, then you have... Read More
The object of search engines is to give their visitors... Read More
A Double Ad Tracker is an Ad-Tracker that points to... Read More
Since I made the switch 6 months ago to a... Read More
Don't just put your slogan in the title tag when... Read More
Owning your own website is a must if you are... Read More
Do you know why the majority of people use the... Read More
We would all like to have the best looking website,... Read More
STEP 1:Do your homeworkPlan and think about your content. Think... Read More
Design sells. It's something that all of us know, but... Read More
Web Design |