Article

Working With Hexadecimal Colors

Written by Ranold Anton

Topic: Internet MarketingPublished March 4, 2008
No ratings yet731 viewsSign in to rate
HTML use hexadecimal numbers to express RGB color values. Hexadecimal numbers are a base-16 numbering system, so the numbers run from 0 through 9 and then A through F. when compared to a standard base-10 numbering system, hexadecimal looks strange because it includes letters in the numbering scheme. Do not let hexadecimal numbers put you off. All you need is a cross-reference, or better yet, a Web page that lists all the colors. The principles of Las Vegas Web site design Companion Web site has an online color chart you can use. Some HTML reference books have a printed color chart of hexadecimal colors, but in general, you always should use an online color resource for checking color values because you will get a much more realistic view of the actual color. Hexadecimal color values are six-digit number; the first two define the red value, the second two define the green, and the third two define the blue. You can use these values in a variety of elements with either the BGCOLOR attribute or the COLOR attribute to define color in your Web pages. Cascading Style Sheets also accept hexadecimal color values. SETTING BACKGROUND PAGE COLORnnOne of the simplest ways to work with hexadecimal color is to specify a background color for your pages. Use the BGCOLOR attribute in the element, or with Cascading Style Sheets, use the BACKGROUND-COLOR property with BODY as the selector. USING BACKGROUND COLOR IN TABLESnnYou can use background color in tables for different purposes, all by using the BGCOLOR attribute. The table row, table header, and table data elements all accept the BGCOLOR attribute. Creating Reverse TextnnBy using the BGCOLOR attribute to set background color, you can create reverse text in table cells. The first row in the table with the BGCOLOR attributes set to red, blue, and green, respectively each cell, and the text color set to white. Creating Continuous Color AreasnnBy combining the BGCOLOR attribute with a table that has default spacing turned off, you can create continuous seamless areas of color. Remember to remove the default table spacing by setting the attribute values. If you do not remove the default spacing, you will see the separations between each cell. CHANGING LINK COLORSnnYou can change your hypertext link color using hexadecimal values or standard color names. Now that you have the capability of changing link colors, do not rush out and change all your links to different colors until you think about the consequences for your users. They probably are expecting the default blue and purple links. This does not mean you should not change link colors. Many sites change their links to match their Web site design color scheme. Changing link colors is acceptable as long as you maintain color consistency and preserve the contrast between the new and visited link colors to provide a recognizable difference to the user.n

Article author

About the Author

Ranold Anton focuses on Las Vegas website design, San Francisco website design, New York website design, Washington website design, Seattle website design, Texas website design, Houston website design, Kansas website design, Missouri website design, Florida website design, Miami website design, Oregon website design, Portland website design, Georgia website design, Atlanta website design

Further reading

Further Reading

3 total

Article

Businesses in today's digital-first world always look for faster and more efficient means to get to the online audience. Social media are the new-age marketing places where brands can interact with customers according to their interests, habits, and geographic locations. The digital era has thus converted paid social ads into effective means of getting the brand recognized and generating leads. The increasing competition in metropolitan areas makes meta ads services in Delhi

February 6, 2026

Article

The New Reality of Connected Customers A customer begins their day checking messages on a smartphone, continues research on a laptop during lunch, and resolves an issue later through a smart TV app or voice assistant. This fluid movement across devices has become normal. What has changed is customer expectation. People no longer see channels as separate paths; they see one continuous journey. Omnichannel Support 2.0 is the response to this reality, focusing not just on presen

January 9, 2026

Article

Choosing the right call center agency can make or break your customer support strategy. With dozens of providers promising competitive rates and high efficiency, businesses often feel overwhelmed by the choices. Many focus on price alone, but reliability, quality, and alignment with your brand are far more important for long-term success. A reliable agency does more than answer calls—it becomes an extension of your business, shaping customer perception and influencing l

January 6, 2026