Convert HEX colors to RGB values and back again with live validation and a preview swatch.
Enter either a HEX value or RGB numbers.
Let the tool convert the other format automatically when the input is valid.
Copy the result you need for CSS, design tokens, or documentation.
Yes. Three-digit HEX values are expanded automatically when they are valid.
The tool keeps your current input visible and shows a validation message until the color becomes valid again.
Pick a color visually, inspect HEX, RGB, and HSL values, and copy the exact format you need.
Sample any pixel in an uploaded image and copy the HEX, RGB, HSL, and HSV values.
Format, validate, and minify JSON with indentation controls and clear parse.