HTML Code for Color (16 Colors)
The HTML Codes for Colors we can use are endless when you make your own web site. There are two ways to select a color. The first and easiest is by the name of the color. The following are the names of the colors:
These HTML Colors Codes are used by simply enclosing the html color code name in quotes with the appropriate modifier (like bgcolor or color etc).
These HTML Colors Codes are used by simply enclosing the html color code name in quotes with the appropriate modifier (like bgcolor or color etc).
| RED |
GREEN |
BLUE |
BLACK |
||||
| MAROON |
OLIVE |
NAVY |
GRAY |
||||
| PURPLE |
LIME |
TEAL |
SILVER |
||||
| FUCHSIA |
YELLOW |
CYAN |
WHITE |
HTML Code for Color (16 Million)
The second color selection method is more precise, although it may seem a little tedious. There are 16 million colors available.
The syntax for using this method requires the hexadecimal number to be preceded with a number (#) sign, all within quotes (like: "#ffee22") along with the modifier (bgcolor, etc).
Most of your better graphic programs allow you to use any of the 16 million html color codes and provide a way to convert what you see into a hexadecimal (base 16) value. A good graphics program is the Paint Shop Pro program from Corel. The software is quite powerful but reasonably priced.
I chose to only show you 512 colors with the following HTML color chart. An HTML color code may look different on different monitors and printers. This should give you a pretty good idea of how the system works and what each HTML color code should look like.
The syntax for using this method requires the hexadecimal number to be preceded with a number (#) sign, all within quotes (like: "#ffee22") along with the modifier (bgcolor, etc).
Most of your better graphic programs allow you to use any of the 16 million html color codes and provide a way to convert what you see into a hexadecimal (base 16) value. A good graphics program is the Paint Shop Pro program from Corel. The software is quite powerful but reasonably priced.
I chose to only show you 512 colors with the following HTML color chart. An HTML color code may look different on different monitors and printers. This should give you a pretty good idea of how the system works and what each HTML color code should look like.
| xxxx00 | xxxx22 | xxxx44 | xxxx66 | xxxx88 | xxxxaa | xxxxcc | xxxxff | |
|---|---|---|---|---|---|---|---|---|
| 0000xx | ||||||||
| 0022xx | ||||||||
| 0044xx | ||||||||
| 0066xx | ||||||||
| 0088xx | ||||||||
| 00aaxx | ||||||||
| 00ccxx | ||||||||
| 00ffxx | ||||||||
| xxxx00 | xxxx22 | xxxx44 | xxxx66 | xxxx88 | xxxxaa | xxxxcc | xxxxff | |
| 2200xx | ||||||||
| 2222xx | ||||||||
| 2244xx | ||||||||
| 2266xx | ||||||||
| 2288xx | ||||||||
| 22aaxx | ||||||||
| 22ccxx | ||||||||
| 22ffxx | ||||||||
| xxxx00 | xxxx22 | xxxx44 | xxxx66 | xxxx88 | xxxxaa | xxxxcc | xxxxff | |
| 4400xx | ||||||||
| 4422xx | ||||||||
| 4444xx | ||||||||
| 4466xx | ||||||||
| 4488xx | ||||||||
| 44aaxx | ||||||||
| 44ccxx | ||||||||
| 44ffxx | ||||||||
| xxxx00 | xxxx22 | xxxx44 | xxxx66 | xxxx88 | xxxxaa | xxxxcc | xxxxff | |
| 6600xx | ||||||||
| 6622xx | ||||||||
| 6644xx | ||||||||
| 6666xx | ||||||||
| 6688xx | ||||||||
| 66aaxx | ||||||||
| 66ccxx | ||||||||
| 66ffxx | ||||||||
| xxxx00 | xxxx22 | xxxx44 | xxxx66 | xxxx88 | xxxxaa | xxxxcc | xxxxff | |
| 8800xx | ||||||||
| 8822xx | ||||||||
| 8844xx | ||||||||
| 8866xx | ||||||||
| 8888xx | ||||||||
| 88aaxx | ||||||||
| 88ccxx | ||||||||
| 88ffxx | ||||||||
| xxxx00 | xxxx22 | xxxx44 | xxxx66 | xxxx88 | xxxxaa | xxxxcc | xxxxff | |
| aa00xx | ||||||||
| aa22xx | ||||||||
| aa44xx | ||||||||
| aa66xx | ||||||||
| aa88xx | ||||||||
| aaaaxx | ||||||||
| aaccxx | ||||||||
| aaffxx | ||||||||
| xxxx00 | xxxx22 | xxxx44 | xxxx66 | xxxx88 | xxxxaa | xxxxcc | xxxxff | |
| cc00xx | ||||||||
| cc22xx | ||||||||
| cc44xx | ||||||||
| cc66xx | ||||||||
| cc88xx | ||||||||
| ccaaxx | ||||||||
| ccccxx | ||||||||
| ccffxx | ||||||||
| xxxx00 | xxxx22 | xxxx44 | xxxx66 | xxxx88 | xxxxaa | xxxxcc | xxxxff | |
| ff00xx | ||||||||
| ff22xx | ||||||||
| ff44xx | ||||||||
| ff66xx | ||||||||
| ff88xx | ||||||||
| ffaaxx | ||||||||
| ffccxx | ||||||||
| ffffxx |