## Color Units

Wikipedia Web Colors

### Name

As defined in HTML: black, silver, gray, white, maroon, red, purple, fuchsia, green, lime, olive, yellow, navy, blue, teal, aqua

### RGB Color Space

256 colors in each channel (Red, Green, Blue). Values can be

- decimal numbers (0 to 255)
- hexadecimal numbers (00 to ff)
- percentages (0 to 100%)

The following are all equivalent ways of defining a shade of crimson:

#99000 #900 rgb(153,0,0) rgb(60%,0%,0%) |

Example 10.21
Example 10.21 Source:
<div style="background-color: #990000; color: white; padding: 0.5em; margin: 0.25em; " > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </div> <div style="background-color: #900; color: white; padding: 0.5em; ; margin: 0.25em;" > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </div> <div style="background-color: rgb(153,0,0); color: white; padding: 0.5em; ; margin: 0.25em;" > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </div> <div style="background-color: rgb(60%,0%,0%); color: white; padding: 0.5em; ; margin: 0.25em;" > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </div>
Example 10.21 Rendered:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.