Color Converter
Convert between HEX and RGB color codes with real-time preview. Essential tool for web designers and developers.
About Color Codes
HEX Color Codes: Hexadecimal (HEX) color codes are six-digit combinations of numbers and letters defined by its mix of red, green and blue (RGB). Example: #4285f4 (Google blue).
RGB Color Values: RGB stands for Red, Green, Blue. Each parameter defines the intensity of the color as an integer between 0 and 255. Example: rgb(66, 133, 244).
Usage Examples
- CSS:
color: #4285f4;
orcolor: rgb(66, 133, 244);
- HTML:
<div style="background-color: #4285f4"></div>
- JavaScript:
ctx.fillStyle = 'rgb(66, 133, 244)';