Color Converter (HEX ⇄ RGB ⇄ HSL)
Enter a color in any common format — #ff5733, rgb(255,87,51) or hsl(11,100%,60%) — and get all equivalents with a live preview and a generated shade scale.
| HEX | #ff5733 | |
| RGB | rgb(255, 87, 51) | |
| HSL | hsl(11, 100%, 60%) |
✔ Done — what’s next?
You may also need
- HEIC to JPG Converter — Turn iPhone HEIC photos into JPG files that open everywhere — batch convert without uploading.
- Unit & Currency Converter — Convert length, weight, temperature, volume and live currency exchange rates.
- CSV to JSON / Excel Table Converter — Paste or upload CSV and get JSON plus a spreadsheet-style table preview.
- JSON to CSV Converter — Turn a JSON array of objects into a CSV file you can open in Excel or Google Sheets.
- Number to Words Converter — Spell out any number in words, including currency and check-writing formats.
- Markdown to HTML Converter — Write Markdown and see the rendered preview and clean HTML side by side.
Popular next tools
How to use the Color Converter
- Type a HEX, RGB or HSL value.
- See the other formats and the preview update instantly.
- Copy the value you need.
Common use cases
- Turn a HEX code from a design into RGB for CSS or apps
- Find lighter and darker shades of a brand color
Example
#3B5998 = rgb(59, 89, 152) = hsl(221, 44%, 41%).
HEX vs RGB vs HSL — Which Format When?
HEX (#ff5733) is the compact web standard, ideal for copy-pasting between tools. RGB expresses the same value as red/green/blue channels and is required when you need alpha transparency (rgba). HSL describes hue, saturation and lightness — by far the easiest format for humans to adjust: want it darker? Lower the L value.
All three formats describe the same sRGB color space, so conversion is lossless. Modern CSS also supports newer spaces (LCH, OKLCH) for wider gamuts, but sRGB formats remain the compatibility baseline.