Hex to RGB Converter
Convert hex colors to RGB and HSL, or convert RGB values back to hex. Supports single and batch conversion.
How to Convert Hex to RGB
A hex color code is a six-character string that represents a color using the hexadecimal number system. Each pair of characters represents the intensity of red, green, and blue respectively. For example, #FF0000 is pure red because the red channel is at maximum (FF = 255) and the green and blue channels are at zero (00 = 0).
Conversion Methods
- Hex to RGB: Enter a hex code like
#6366f1and get the RGB values (99, 102, 241). - RGB to Hex: Enter red, green, and blue values (0–255) and get the hex code.
- HSL to Hex: Enter hue, saturation, and lightness values and get the hex code and RGB.
Batch Conversion
Use the batch tab to convert multiple hex colors at once. Enter one hex code per line, or separate them with commas. This is useful when you need to convert an entire palette or color scheme to RGB values.