Convert colors between HEX, RGB and HSL with a live preview.
How to use the Color Converter
Enter a color as HEX, for example #ff8800.
See it converted to RGB and HSL instantly.
Copy whichever format you need.
This is a color converter for web and design work that translates a color between the three formats you use most: HEX, RGB and HSL, with a live swatch so you can see exactly what you are working with.
This is the everyday glue between design and code: matching a brand color from a mockup to a CSS variable, converting a value a designer gave you in one format to the one your framework wants, or finding a slightly lighter shade for a hover state.
Everything runs in your browser, so it is instant and nothing you enter is sent anywhere.
Each format describes the same color differently. HEX (like #ff8800) is the compact form used throughout CSS and HTML. RGB states the red, green and blue channels directly, which is how screens and code such as canvas think about color. HSL describes hue, saturation and lightness, which is far more intuitive when you want to nudge a color: change the hue to shift it around the wheel, or the lightness to make it darker without picking a new code by hand.
Enter a HEX value and the RGB and HSL equivalents update instantly, so you can grab whichever format the tool or codebase in front of you expects.
For now the tool focuses on opaque colors in HEX, RGB and HSL; alpha (opacity) support is not included yet.
Frequently asked questions
HEX (#rgb or #rrggbb), RGB and HSL. Enter a HEX value and the others update live.
Not yet. This tool focuses on opaque HEX, RGB and HSL. Alpha support can be added later.
RGB sets the red, green and blue channels directly, the way a screen renders color. HSL describes hue, saturation and lightness, which makes it easier to adjust a color intuitively, for example to make it lighter or shift its hue.
A HEX code such as #ff8800 is a compact way to write an RGB color using hexadecimal: two digits each for red, green and blue. It is the format used most in CSS and HTML.
Yes. The conversion runs entirely in your browser, so the colors you enter are never sent to a server.
Embed this tool
Add this tool to your own website. Copy the snippet below; it stays up to date automatically.
<iframe src="https://monu.tools/embed/en/color-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>Related tools
Convert Unix timestamps to human dates and back: UTC, local, ISO 8601 and relative time. Seconds and milliseconds are auto-detected.
Percent-encode and decode URLs and URL components, UTF-8 safe.
Convert JSON to CSV and CSV back to JSON, both ways. Choose the delimiter, handle quoted fields, and copy the result. Everything runs in your browser.
Convert YAML to JSON and JSON back to YAML, both ways. Validates as it converts and shows clear errors. Everything runs in your browser.