Using and Converting to Color-Safe Palettes



Get Web Design Tips and Tricks on mps-web-design.com. Using and Converting to Color-Safe Palettes topic will increase your understanding on Web Design Tips and Tricks. We at mps-web-design.com only provide news, articles, information in Web Design Tips and Tricks. Web Design Tips and Tricks at mps-web-design.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.

Using and Converting to Color-Safe Palettes by Sunil Tanna of Answers 2000 http://www.ans2000.com/

----------------------------------------------------------------- Publication Terms And Conditions:

Answers 2000 Limited grants you a free non-exclusive permission (license) to publish a copy of this article on your web site or opt-in ezine, subject to you complying with ALL of the following:

1. You must publish the article in full and unedited (except that you may omit this Terms and Conditions section, you may omit the word count, and you may correct any typos that you might find). 2. If you publish on a web site: (i) you must make ALL links clickable, (ii) you may format the article to fit within your web site's design, (iii) you must include the copyright notice and 'About the Author' section at the end. 3. If you publish in an ezine: (i) your ezine must be opt-in with your users having specifically elected to subscribe to your ezine and with the ability to unsubscribe at any time, (ii) you must include all link URLs unedited and in full, (iii) you may format the article to your ezine's layout, (iv) you must include the copyright notice and 'About the Author' section at the end. 4. To the maximum extent permissible under law, this article is provided 'AS IS' without warranties of any kind whether express or implied. 5. These terms and conditions shall be governed by and construed in accordance with the laws of England and Wales. Any disputes arising from matters relating to this article shall be exclusively subject to the jurisdiction of the courts of England and Wales. You agree that any legal action against Answers 2000 Limited (or its directors, officers, or employees) relating to this article or this agreement will be brought in the courts of London, England, however Answers 2000 Limited reserves right to pursue breach of these terms in any jurisdiction.

There are 659 words in this article (including title and About the Author section). -----------------------------------------------------------------

When you design web pages in HTML, as you probably know, you can use a tremendous range of colors (over 16 million) for fonts, tables, backgrounds and so forth using the COLOR attribute of the various HTML tags.

One thing that many novice webmasters don't think about is whether these colors will be displayed correctly on the screens of visitors who don't have the latest whiz-bang graphics cards.

There are still people out there who have a graphics cards which are only capable of displaying 256 colors at once. In these cases, the only colors which you can be sure will be displayed correctly are those in the browser-safe color palette.

For information about the browser-safe color palette see: http://www.graphicsacademy.com/what_colorsafe.php

So what happens if your web page includes a color that isn't in the color-safe palette, and a person tries to view on a 256 color screen?

Answer: It depends on the user's web browser.

- In some cases, the colors that aren't available will be converted to their nearest 'color-safe' equivalent. This can lead to your web page looking different from what you intended.

- In other cases, particularly for large areas of continuous color (such as backgrounds and tables), the browser may attempt to simulate the your chosen color by 'dithering' two or more color-safe colors together. This usually makes the colors look grainy, and very often looks absolutely terrible. If you don't know what I mean by 'dithering', see the explanation at: http://www.graphicsacademy.com/what_dither.php

The Solution:

Review your HTML coding, and look at the colors in each COLOR= attribute... then change them to their closest color-safe equivalents.

(You might want to make a safe copy of your web pages before doing this, in case you make an oopsy).

Understanding The COLOR Attribute In HTML Code:

If you look at the COLOR= attributes in the HTML code, it usually looks something like this

COLOR='#C20F8C'

(Sometimes you may also see named colors like 'RED' or 'MAGENTA' which is beyond the scope of this discussion, just skip over any of those).

The values in the quotes after the hash symbol, are actually three pairs of digits, representing the Red, Green, and Blue components of the color expressed as hexadecimal numbers in the range 00 to FF.

So for the color given above:

- C2 is the Red component - 0F is the Green component - 8C is the Blue component

There is also a three-digit variant of the above which you may very occasionally run across:

If you see something like: COLOR='#F9C'

Then you simply need to repeat each digit, thus F9C represents:

- FF for the Red component - 99 for the Green component - CC for the Blue component

Converting to Color-Safe Colors:

Now we understand the theory, we're ready to convert a color to its closest color-safe equivalent.

For each of the Red, Green and Blue components, you need to convert them separately into values, you need to convert them separately into the color-safe equivalents, and then recombine the whole lot together.

The conversion step goes like this:

00 to 19 - converts to 00 1A to 4C - converts to 33 4D to 7F - converts to 66 80 to B2 - converts to 99 B3 to E5 - converts to CC E6 to FF - converts to FF

For example:

If we need to convert C20F8C to its closest color-safe equivalent:

- We would convert the C2 part to CC - We would convert the 0F part to 00 - We would convert the 8C part to 99 - And thus we would CC0099 as the final color.

Some other examples:

2B2CF0 would convert to 3333FF C000C0 would convert to CC00CC F0A000 would convert to FF9900 And so on...

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/


ForexEnterprise.com: Earn $1,000 Per Day. - The Multiple Streams of Income System - Start Making Money In Just 15 Minutes. Updated & Converting like Crazy!
HomeTypers.com - Earn 75% Commission! - Get Paid Typing Data! Affiliates Now Earn 75% Commission @ $34 Per Sale! Converting Better Than Ever!


Article Index: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79


More Articles:


1. IS YOUR WEB SITE UNFRIENDLY? PARTS 3 and 4 of 9
Part 3: Sound FilesIf you must put MIDI sound files on your page make them sothat visitors have to ask to hear the file--maybe bypressing the 'start' button. Apart from the fact thatvisitors may find the music objectionable, there's a goodchance:1 they are surfing late at night or early in the morningwhen other people are sleeping;2 they are listening to the radio or a CD and will beirritated when your sound file drowns it;3 they may even be trying to look busy during a lull atwork, and the soun…

2. How to Get Your Website Talked About on Blogs
Blogs are a very powerful force on the web today. Have you ever wondered why searching for something seems to turn up so many blog entries as results? That's because blogs link to each other all the time, creating a strong network of links that does very well in the search engines. Not only that, but they're not shy about linking to other sites, as long as they like them, and one blogger is likely to take links from the next and re-publish them. In other words, getting talked about on blogs gets…

3. Colors in Website Design
=================================================== Since people associate particular colors with different emotions, the colors used on your website can have a psychological effect on visitors to your site. By using specific colors geared towards the emotion you want to invoke, you can actually increase product sales. Here are some colors along with the emotions and symbols they stimulate: 1) WHITE- purity, innocence, peace, perfection, chastity, sterility, cleanliness. In general, white cre…

4. Event Planning Must Include An Event Website By Soren Breiting
As part of your event planning you should seriously consider registering a special event domain. That should in fact be the first step for your planning of any event.Whatever it is: - your big wedding event - any other big family event - a festival - a course / training event - a celebration event in your local community - an international seminar or conference event - a campaign event / promotion event - a school class event.It is much easier to find a proper domain name for an even…