Convert between Hex color codes and RGB values for web development.
Color codes are used in web development and graphic design to represent colors. The two most common formats are Hex (hexadecimal) and RGB (Red, Green, Blue).
Hex color codes use the hexadecimal format to represent colors in HTML, CSS, and other computing applications.
#RRGGBB
or #RGB
#FF5733
(a shade of orange)#F53
is the same as #FF5533
)RGB colors specify the intensity of red, green, and blue components of a color using decimal values.
rgb(R, G, B)
rgb(255, 87, 51)
(same orange as the hex example)rgba(R, G, B, A)
where A is the alpha (transparency) value ranging from 0 to 1Color Name | Hex Code | RGB Values | Preview |
---|---|---|---|
Red | #FF0000 | rgb(255, 0, 0) | |
Green | #00FF00 | rgb(0, 255, 0) | |
Blue | #0000FF | rgb(0, 0, 255) | |
Black | #000000 | rgb(0, 0, 0) | |
White | #FFFFFF | rgb(255, 255, 255) |