Color converter
Convert a color between HEX, RGB and HSL, with a live preview.
🔒 100% client-side — no data sent
Color converter to easily switch between HEX, RGB, and HSL formats. Ideal for CSS, design, and web development when you need the exact code of a color. Conversion is instant and runs entirely in your browser, with no data sent.
FAQ
How do I convert a HEX color to RGB?
Enter the hex code (e.g. #3498db) into the tool: the matching RGB values (e.g. rgb(52, 152, 219)) appear automatically.
What is the difference between RGB and HSL?
RGB describes a color by its red, green, and blue components, while HSL describes it by hue, saturation, and lightness, which is often more intuitive for tweaking a shade.
Can I convert colors with transparency (alpha)?
The tool focuses on standard HEX, RGB, and HSL formats; for transparency, use the RGBA or HSLA variants by adding the alpha value to the converted color.
Are the color codes CSS-compatible?
Yes, every generated value (HEX, rgb(), hsl()) can be used directly in a CSS stylesheet without changes.