About the Color Converter
The Color Converter runs entirely in your browser — your code and data never leave your machine. Paste, click, copy the result.
Designers think in HSL (hue, saturation, lightness), CSS variables often use HEX, and inline styles use RGB. This converter syncs all three formats at once: edit any field and the others update, with a live swatch so you can see exactly what you're converting.
How to use this tool
- Enter a HEX color (with or without the #), or use the picker.
- Or type R/G/B or H/S/L values directly.
- Press Convert (fields also update as you type).
- Copy any format from the output box.
Format reference
| Format | Example | Notes |
|---|---|---|
| HEX | #4f46e5 | 6 digits (RRGGBB); 3-digit shorthand expands pairs |
| RGB | rgb(79, 70, 229) | 0–255 per channel; alpha via rgba(…,0.5) |
| HSL | hsl(243, 75%, 59%) | Hue 0–360°, S/L 0–100% — easiest to adjust |
Why HSL changes everything
Need a lighter version of a brand color? In HSL, raise L by 10% and keep H and S — guaranteed harmonious shades. Need a complementary color? Add 180° to the hue. Try doing that from a HEX value in your head.
- Same color, different names: indigo-600 (#4f46e5) = Tailwind's
indigo-600. - Opacity: append alpha:
rgba(79,70,229,0.35).
Who is this tool for?
Front-end developers matching brand colors, designers building palettes, and anyone who has ever squinted at #e63946 trying to guess its RGB.
Developer tip
Build palettes in HSL: fix the hue, vary only L for shades and S for muted tones — instant consistency across your UI.