Colors!
About html
Color
Images and Links
Lists
Tables
My Horses
Index
"I have found I could say things with color and shapes that I couldn't say any other way-- things I had no words for." -Georgia O'Keeffe
Colors of light
The primary colors are red, blue, and yellow. However, these are not the primary colors of light.
The primary colors of light are red, green, and blue. The secondary colors are created by combining two primary colors.
Secondary colors are orange, green, and purple, while the secondary colors of light are cyan, magenta, and yellow.
Also, the set of primary colors used varies on their intended purposes, as primary colors are really just a set of colors that can combine to form all of the colors needed.
In additive combination of colors, red, blue, and green are usually used as the primary colors. Many projector lights use this color scheme.
The additive color system combines light to create different colors.
In subtractive combination, cyan, magenta, and yellow are often used as the primary colors. This scheme is almost always used in printing.
The subtractive color system creates different colors because the ink or color absorbs every wavelenght of color except one, which it reflects.
Hexadecimal Representation
Colors are in a base-16, or hexadecimal, number system in computers. Because there are only ten seperate digits (0-9), the letters A, B, C, D, E, and F are used to complete the base-16 system.
Six letter codes are used in the RGB color model, which is further discussed below .
Setting Text and Background Colors
To set the background color, insert bgcolor = "#ooooff" inside the body tag, but use the code you need for whatever code you want.
Also, you can write a color name in that space, such as "blue." However, the computer understands a limited number of color names, so there is a much wider variety using code.
To set font color, use a tage that reads: <font color= "000000"> Again, use the code for whatever color you want the text to be. End the section of text that you want in that color with </font>.
To set the text color for everything on the page, insert text= "000000" inside the body tag.
The colors you use for you background and text are very important; if they are too similar the page can be hard to read.
Also, it can be useful to run the page through an online color blindness filter to make sure that everyone will be able to read it.
Here is an online filter that will show you what your website looks like to someone with color blindness: Colorblind Web Page Filter
Color Models
RGB Color Model
In the RGB color model, the primary colors are red, green, and blue.
Each code, which is six characters long, represents a color. The first two digits represent red values, the middle two digits represent green values, and the last two digits represent the blue values.
The highest value one of these colors can be is FF, and 00 is the lowest.
RGB is written in the hexadecimal system, see above .
A great web site for finding colors and their hexadecimal codes is Adobe Kuler
HSV Color Model
HSV stands for hue, saturation, and value. This color model is commonly used in computer graphics.
HSV puts colors, commonly useing red, green, and blue and the primary colors, in a cylindrical form that is roughly equal to human perception.
However, this causes different HSV model to have slightly different colors because these models are roughly equal, but not exactly. Thus, it is not as uniform as the RGB model,
because in the RGB model, a certain code always corresponds to the same color.
Sources
http://en.wikipedia.org/wiki/Subtractive_color
http://en.wikipedia.org/wiki/Primary_color
http://en.wikipedia.org/wiki/HSL_and_HSV
http://www.redminibox.com/products/colorpicker/RGB.php
http://scien.stanford.edu/class/psych221/projects/02/sojeong/index.8.gif
Maria 3/5/10