Colors on the web are expressed as string values, either as a common color name, or as a triplet of values that signify the amounts of red, green and blue in the color. These are all valid ways to indicate the same color:
| Name | RGB | Hex |
|---|---|---|
| yellow | rgb(255,255,0) | #ffff00 |
| white | rgb(255,255,255) | #ffffff |
| teal | rgb(0,128,128) | #008080 |
| silver | rgb(192,192,192) | #c0c0c0 |
| red | rgb(255,0,0) | #ff0000 |
| purple | rgb(128,0,128) | #800080 |
| olive | rgb(128,128,0) | #808000 |
| navy | rgb(0,0,128) | #000080 |
| maroon | rgb(128,0,0) | #800000 |
| lime | rgb(0,255,0) | #00ff00 |
| green | rgb(0,128,0) | #008000 |
| gray | rgb(128,128,128) | #808080 |
| fuchsia | rgb(255,0,255) | #ff00ff |
| blue | rgb(0,0,255) | #0000ff |
| black | rgb(0,0,0) | #000000 |
| aqua | rgb(0,255,255) | #00ffff |