webdesign articles


Understanding How HTML Color Codes Work





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.


MORE RESOURCES:

Indianapolis SEO, IndianapolisSeo.com, an SEO and Web Design Firm ...
PR Web (press release), WA - 3 hours ago
IndianapolisSeo.com, a Web design and search engine optimization firm is launching the new website for PJ's College of Cosmetology based in Indiana and ...


The Official Launch of Focus-global.com and 5 Affiliate Websites ...
PR Web (press release), WA - 2 hours ago
For more than 13 years, the Company specializes in variable data publishing, email marketing, web design and development, and search engine marketing. ...


Special web design and development rate for start-up businesses
Cambridge Network, UK - Jan 6, 2009
Media Creative Web Design and Development, a Cambridge based company, are to offer a special rate of £99 per web page to all start up businesses who have ...


Web design essential for your business
BigNews.biz (press release), MA - Jan 5, 2009
For that your really need to hire a web designer with professional web design experience – more specifically a business web page designing, ...


Klue

Web Design Malaysia | Greenfrog Studio
Klue, Malaysia - Jan 5, 2009
Its not hard to imagine how important your website is. It is the one brand & marketing tool that build sales and at the same time improves your branding ...


Web Design Outsourcing services by Cranberry
BigNews.biz (press release), MA - Jan 2, 2009
Cranberry Communications Pvt. Ltd. (http://www.cranberryindia.com) has come up with specialized web design services for web design companies based in USA, ...


RAGE WebCrusher
ZDNet Asia, Singapore - 12 hours ago
Whether you built your website with iWeb, Rapidweaver, Dreamweaver or RAGE WebDesign, RAGE WebCrusher can ensure your website loads as fast as possible for ...


Best Web Design and Development: Schematic
MediaPost Publications, New York - Jan 2, 2009
by Christine Champagne, Yesterday, 12:00 AM Schematic spent a decade helping clients like Coca-Cola, Walt Disney and Target make their marks on the Web. ...


Dallas SEO Web Design Firm Signs Strategic Partnership With SEO 1 ...
TransWorldNews (press release), GA - Jan 2, 2009
Texas based SEO 1 Services has entered into a marketing agreement with Brazen, a Dallas Web Design company, to cooperate in SEO friendly web development. ...


openPR (press release)

Leading Fort Myers Web Design Firm Experiences Record Growth in 2008
openPR (press release), Germany - Jan 5, 2009
Brian Joseph Studios LLC is now considered Fort Myers web design and Naples web design experts and there is no sign of them stopping or easing up. ...

Web-Design - Google News

home | site map
Webdesign-box © 2006