banner
Welcome to HTML.co.uk, the number one resource for all news, information, and happenings regarding HTML.

Updates: HTML.co.uk has just been relaunched. Subscribe to our RSS Feed to stay on top of HTML news and techniques.
Jun
14th

Guide and Introduction to the HTML Colour Code Set

Author: Editor | Files under HTML Tutorials
Tags for this article: , , , , , , , , ,

Have you wondered ever on how the HTML colour code set will work together? Just for the beginners, it will look like several letters and numbers will not make no sense. The fact is that the HTML colour codes are very much written in the way for the specific reason that we will be looking below in this article.

Introducing the hexadecimal system
The hexadecimal system is just a numeral system with the base of 16 that is usually written using from 0-9 and A-F. Numbers from 0 to 9 have exactly the same values in the decimal system but they will start with the letters starting from A and going up to the value of 16. Here, A is worth 10 and it goes up to F which has value of 16.

How the colour codes are put together.
The HTML colour code is composed of 6 hex numbers that will be representing around 16.7 million colour combinations. These hex colours are built on the model of RGB. Here, R is for Red, G for Green and B stands for Blue. The typical HTML code looks like this: FFFFFF breaks as follows. The first 2 digits #FFFFFF will represent the colour red and the second set #FFFFFF stands for green and the third set #FFFFFF will stand for Blue.

Overview of RGB model
The RGB model like that of HTML colour model will represent more than 16.7 million colours. Just by varying the amount of Green, Red and Blue, you will be able to come up with any of the 16.7 million colours as well. Here the RGB is represented by the values from 0 to 255. So the value for the colour white will be somewhat 255, 255 and 255.

Putting the RGB and HTML together
Whenever you combine the 2 hexagonal numbers, you will be able to represent any type of number between 0 and 255. As you will be able to see that, the HTML and RGB colour codes will represent the same model of colour.

Colour Palette of Websafe
In the past, monitors used to display only 256 colours. When HTML was put together, the monitors with the 256 colours were very much popular. As it was very much necessary to put up the list of colours that the web designers could have to be sure that any given monitor could display properly as a result of this Websafe are colours. This Websafe colour palette is made of totally 216 colours.

Always it is a good practice to pick up the standard colours all across the board but it will not longer be necessary to stick up with the Websafe colours. By doing so it is now used for more purposes for holding to standard than it is for the necessity. One of the exceptions for this rule is developing the websites for the PDA’s and mobile phones. Now all the devices are crossing all the barriers that were used to be in the past.

Post a Comment