| Home | Articles | Archive | Links |


- Misc
Using And Converting To Color Safe...
Two Main Groups Of Spam
Types Of Internet Access
Types Of Tools Saws
Understanding And Choosing A Domain...
Understanding Directory Submission...
Understanding DSL Internet Service
Understanding Message Boards Get...
Understanding The World Wide Web
Usability Not Such A Complicated...
Usability Testing With Children
Use Pictures For Best Effect With...
Using A Web Directory
Using Banner Stands To Increase...
Using Blog PR To Promote Your Site
Using Ecommerce Templates
Using Keyword Elite For Building...
Using MSN To Get Better Search...
Using Opt In Email Properly
Using Overstock Merchants On...
Webish
Web Site 101
Wanadoo Broadband
Using RSS In Communication
- Design
Uncover Why Most Website Designers...
- SEO
Two Search Engine Optimization Myths...
Understanding The Game Of Search...
Understanding The Google Dance
Use Overture Yahoo To Get Website...
Using External Coding To Improve...
Using Google Alerts To Help Your...
- Earning Money
Unique Spin Offs For Making Money...
Use Internet Forums To Earn Money
- Hosting
Understanding Virtual Private...
- Linking
Use Link Bait To Catch Better...
Using Directory Submissions To Build...
- Auction
Understanding Ebay Buying Tools
Understanding Ebay s VeRO Program
Understanding The Different Ebay...
Using Internet Auction Services...
Using Paypal On Ebay

Using And Converting To Color Safe Palettes



W


hen you design web pages                                        
in HTML, as you probably      So what happens if your web page  
know, you can use a           includes a color that isn't in    
tremendous range of colors (over      the color-safe palette, and a     
16 million) for fonts, tables,        person tries to view on a 256     
backgrounds and so forth using        color screen?                     
the COLOR attribute of the                                              
various HTML tags.                    Answer: It depends on the user's  
                                      web browser.                      
One thing that many novice                                              
webmasters don't think about is       - In some cases, the colors that  
whether these colors will be          aren't available will be          
displayed correctly on the            converted to their nearest        
screens of visitors who don't         "color-safe" equivalent. This can 
have the latest whiz-bang             lead to your web page looking     
graphics cards.                       different from what you intended. 
                                                                        
There are still people out there      - In other cases, particularly    
who have a graphics cards which       for large areas of continuous     
are only capable of displaying        color (such as backgrounds and    
256 colors at once. In these          tables), the browser may attempt  
cases, the only colors which you      to simulate the your chosen color 
can be sure will be displayed         by "dithering" two or more        
correctly are those in the            color-safe colors together. This  
browser-safe color palette.           usually makes the colors look     
                                      grainy, and very often looks      
For information about the             absolutely terrible. If you don't 
browser-safe color palette see:       know what I mean by "dithering",  
http://www.graphicsacademy.com/wh     see the explanation at:           
at_colorsafe.php                      http://www.graphicsacademy.com/wh 



at_dither.php                         the hash symbol, are actually     
                                      three pairs of digits,            
The Solution:                         representing the Red, Green, and  
                                      Blue components of the color      
Review your HTML coding, and look     expressed as hexadecimal numbers  
at the colors in each COLOR =         in the range 00 to FF.            
attribute... then change them to                                        
their closest color-safe              So for the color given above:     
equivalents.                                                            
                                      - C2 is the Red component         
(You might want to make a safe        - 0F is the Green component       
copy of your web pages before         - 8C is the Blue component        
doing this, in case you make an                                         
oopsy).                               There is also a three-digit       
Understanding The COLOR Attribute     variant of the above which you    
In HTML Code:                         may very occasionally run across: 
                                                                        
If you look at the COLOR=             If you see something like:        
attributes in the HTML code, it       COLOR="#F9C"                      
usually looks something like this                                       
                                      Then you simply need to repeat    
COLOR="#C20F8C"                       each digit, thus F9C represents:  
                                                                        
(Sometimes you may also see named     - FF for the Red component        
colors like "RED" or "MAGENTA"        - 99 for the Green component      
which is beyond the scope of this     - CC for the Blue component       
discussion, just skip over any of                                       
those).                               Converting to Color-Safe Colors:  
                                                                        
The values in the quotes after        Now we understand the theory,     



we're ready to convert a color to     If we need to convert C20F8C to   
its closest color-safe                its closest color-safe            
equivalent.                           equivalent:                       
                                                                        
For each of the Red, Green and        - We would convert the C2 part to 
Blue components, you need to          CC                                
convert them separately into          - We would convert the 0F part to 
values, you need to convert them      00                                
separately into the color-safe        - We would convert the 8C part to 
equivalents, and then recombine       99                                
the whole lot together.               - And thus we would CC0099 as the 
                                      final color.                      
The conversion step goes like                                           
this:                                 Some other examples:              
                                                                        
00 to 19 - converts to 00             2B2CF0 would convert to 3333FF    
1A to 4C - converts to 33             C000C0 would convert to CC00CC    
4D to 7F - converts to 66             F0A000 would convert to FF9900    
80 to B2 - converts to 99             And so on...                      
B3 to E5 - converts to CC                                               
E6 to FF - converts to FF             This article is Copyright (C)     
                                      2005, Answers 2000 Limited.       
For example:                          

                              
                                      






About the Author:

This article was written by Sunil Tanna of Answers 2000. For more graphics tutorials, tricks and tips, please visit http://www.graphicsacademy.com/


Read more articles by: Sunil Tanna

Article Source: www.iSnare.com


...Archive >>

Submit Your Site
Recent Articles
  • Reseller Hosting Business : Getting Started

    Starting a reseller web hosting business can be a dream project for expanding your hands over the internet website market but one thing you shall keep clear in mind that decisions you make shall not be taken overnight or in the manner of fastest procedures Any time you start a new reseller web hosting business you shall be clear with a few of the important things which are necessary to keep clear before you opt web hosting as a reseller business for your bread making purposes which we are going to clear in this article The first thing you need to clear is marketing plans and research work for the same in the manner that what shall be your web hosting package configuration and what shall be your market spending areas like for advertising purposes, seo services and others as after all there shall be a proper planning in case you are looking towards long life term business hopes with this new era of web hosting reseller business for your professional life as without a proper planning for both packages and marketing you cannot do the business more than a few days or a month while it shall be not your hopes to do this business for small term...

  • CPanel Web Hosting : Advantages and Benefits

    Are you going to host a new website or planning to move your web hosting provider then remember to choose the one which offer you cPanel web hosting CPanel is one of the most popular control panels for Linux web hosting accounts and today its usages are on boom which is making it more and more popular It is enriched with a tons of features and benefits along with abilities of fantastico sort of website builder engines and good news is this that today most of the internet web hosting service provider today offer cPanel as a web hosting control panel with their Linux web hosting offers...

    Copyright (c) 2008 Isnare.com. All rights reserved.

  • Google
    Using And Converting To Color Safe Palettes