Home arrow HTML arrow Page 3 - Color Composition and HTML
HTML

Color Composition and HTML


The aim of this article is to make you understand the composition of colors and their relationship to HTML. You will learn how you can see a color and reproduce it using numbers.

Author Info:
By: Chrysanthus Forcha
Rating: 5 stars5 stars5 stars5 stars5 stars / 2
March 19, 2008
TABLE OF CONTENTS:
  1. · Color Composition and HTML
  2. · Possible Colors
  3. · Similarity in Colors
  4. · Making Colors Darker or Lighter

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Color Composition and HTML - Similarity in Colors
(Page 3 of 4 )


Similarity in Colors

When you are designing a web page, you may want to input a color that is similar to another one you already know. Now, if you change any of the values of the above colors slightly, you will have a color similar to it. For example, Fuchsia is given as rgb(255,0,255); the color rgb(253,0,253) is similar to Fuchsia.

You might have heard that you can also represent colors using hexadecimal values. I will not address that because the RGB format is enough to cater to anything that concerns this article.

Gray Colors

The black and the white colors are two reference colors in the set of all colors (all combinations of RGB). They are at opposite points. The black color is rgb(0,0,0). The white color is rgb(255,255,255). Note that the value of each of the three fundamental colors in the representation of the black color is 0, the minimum possible value. Also note that the value of each of the three fundamental colors in the representation of the white color is 255, the maximum possible value.

Gray colors are of different levels. For example, you have dark gray colors and light gray colors. For any gray color, the values of the three fundamental colors are the same. The following table gives different gray colors:


Gray Color

RGB Equivalent

WhiteSmoke

rgb(245,245,245)

Gainsboro

rgb(220,220,220)

Silver

rgb(192,192,192)

Gray

rgb(128,128,128) - gray proper

DimGray

rgb(105,105,105)

As you go down the above table, the gray color becomes darker; each of the values is getting closer to 0. Generally, values that are closer to 255 give lighter colors, while values closer to 0 give darker colors.

So any RGB color where the values are equal is a gray color.

Doping Gray Color

The word “dope” means you add a bit of material to a large quantity of another material. The question here is, how can we add a bit of color to gray? The solution is simple. Vary one or two or all three of the values in the RGB code slightly. Do not take the word “dope” in this context strictly, even though the end result looks as if you have added a bit of color to gray. The following table gives “doped” gray colors.


Doped Gray

RGB Equivalent

DarkSlateGray

rgb(47,79,79)

LightSlateGray

rgb(119,136,153)

SlateGray

rgb(112,128,144)


blog comments powered by Disqus
HTML ARTICLES

- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5
- BBC Adopts HTML 5, Mozilla Addresses Issues
- Advanced Sticky Footers in HTML and CSS
- HTML and CSS Sticky Footers
- Strategy Analytics Predicts HTML5 Phones to ...
- HTML5 Guidelines for Web Developers
- Learning HTML5 Game Programming
- More Engaging CSS3 and HTML Background Effec...
- Engaging HTML and CSS3 Background Effects
- More Web Columns with CSS3 and HTML
- Columns with CSS3 and HTML
- Creating Inline-Block HTML Elements with CSS
- Drag and Drop in HTML5: Parsing Local Files

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 9 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials