![]() |
![]() |
Welcome!
|
![]() |
| Introduction:
A Color in HTML is defined by it's Red, Green and
Blue Value.
|
Examples:
A: FF is a just a number (written in hexadecimal system) and means 255 in our decimal number system.
In HTML the Color Values must be specified in the hexadecimal
system.
Every value could be written decimal and hexadecimal.
In the decimal system the base is 10, in hexadecimal 16.
Examples:
| Dec | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Hex | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
| Dec | 00 | 16 | 32 | 48 | 64 | 80 | 96 | 112 | 128 | 144 | 160 | 176 | 192 | 208 | 224 | 240 | 255 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Hex | 00 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | A0 | B0 | C0 | D0 | E0 | F0 | FF |
| Black: #000000 (red=0, green=0, blue=0) | |
| Red: #FF0000 (red=255, green=0, blue=0) | |
| Green: #00FF00 (red=0, green=255, blue=0) | |
| Blue: #0000FF (red=0, green=0, blue=255) | |
| Yellow: #FFFF00 (red=255, green=255, blue=0) | |
| Magenta: #FF00FF (red=255, green=0, blue=255) | |
| Cyan: #00FFFF (red=0, green=255, blue=255) | |
| White: #FFFFFF (red=255, green=255, blue=255) | |
| Grey: #808080 (red=128, green=128, blue=128) |
If you have problems to view this page: