HTML Color Values
Colors are composed of red (R), green (G), and blue (B).
Color Values
Color values are represented by hexadecimal notation for red, green, and blue (RGB).
Each color's minimum value is 0 (hexadecimal 00), and the maximum value is 255 (hexadecimal FF).
Hexadecimal values are written with a hash symbol followed by three or six hexadecimal characters.
The three-digit notation is: #RGB, which expands to six-digit notation as: #RRGGBB.
Color Examples
Color | 3-digit Hex Color Value | 6-digit Hex Color Value | RGB |
---|---|---|---|
#000 | #000000 | rgb(0,0,0) | |
#F00 | #FF0000 | rgb(255,0,0) | |
#0F0 | #00FF00 | rgb(0,255,0) | |
#00F | #0000FF | rgb(0,0,255) | |
#FF0 | #FFFF00 | rgb(255,255,0) | |
#0FF | #00FFFF | rgb(0,255,255) | |
#F0F | #FF00FF | rgb(255,0,255) | |
#888 | #888888 | rgb(136,136,136) | |
#FFF | #FFFFFF | rgb(255,255,255) |
Sorting by Hexadecimal (Hex) Color Values
View color list sorted by color names