HTML color values
Colors consist of red (R), green (G), and blue (B).
Color values
Color values are expressed in hexadecimal to represent red, green, and blue (RGB).
The minimum value for each color is 0 (hexadecimal 00), and the maximum is 255 (hexadecimal FF).
A hexadecimal value is written as a # sign followed by three or six hexadecimal characters.
The three-digit notation is #RGB; converted to six digits, it is #RRGGBB.
Color examples
| Color | 3-digit hexadecimal color values | 6-digit hexadecimal color values | 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) |
Try it »
Sort by hexadecimal (Hex) color values
View the color list sorted by color name