Home >Web Front-end >HTML Tutorial >HTML number values of various common colors (collection)
In HTML, a color can be represented by a color name, RGB value, or HEX value.
RGB
rgb (red, green, blue) three variables are the concentrations of the three primary colors (0~255)
For example, rgb(255,0,0) red
rgb (0,0,0) black
rgb (255,255,255) white
HEX
hexadecimal represents a hexadecimal number
Decimal: 0~255 Convert hexadecimal: 00~ FF
The above is the detailed content of HTML number values of various common colors (collection). For more information, please follow other related articles on the PHP Chinese website!