HTML Color Values
Colors are composed of red (R), green (G), and blue (B).
Color Values
Color values are represented by hexadecimal numbers for red, green, and blue (RGB).
The minimum value for each color is 0 (hexadecimal 00), and the maximum value is 255 (hexadecimal FF).
The hexadecimal value format is a # sign followed by three or six hexadecimal characters.
Three-digit notation is: #RGB, which is converted 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) |
Sort Colors by Hexadecimal (Hex) Values
View the list of colors sorted by color names
YouTip