How page colors are represented
- How the page color is represented
- In English words: red (red), green, blue,
- Hexadecimal notation: #ff0000红色, #00ff00绿色, #0000ff
- Decimal representation (RGB): RGB (255,0,0) Red
2. RGB color Mode
- How the page color is represented
- English words in color: red, blue, green
- In 10 binary notation: RGB (255,0,0) has 10 basic numbers: 0 1 2 3 4 5 6 7 8 9
- In 16 binary notation: #FF0000 (recommended)
- 16 binary has 16 basic numbers, respectively: 0 1 2 3 4 5 6 7 8 9 A B C D E F (15)
- RGB color Mode
- In nature, all colors can be used in red, green, Blue (RGB) The three color wavelength of different intensity combinations, which is often said the principle of three primary colors.
- RGB tricolor is also called additive color mode , this is because when we add different wavelengths of light together, we can get a different blend color. Example: Red + green = Yellow red + blue = Purple green + Blue = Cyan
- RGB each has 256 level (0-255) brightness, 256 levels of RGB color can be combined to a total of about 16.78 million colors, namely 256x256x256=2^24=16777216 (more than 16.77 million kinds)
?
- Common colors
Red color: Red RGB (255,0,0) #FF0000
Green: Cyan RGB (0,255,0) #00FF00
Blue:???? Blue RGB (0,0,255) #0000FF
?
Color representation of Web pages