Convert colors between hex, rgb(), and hsl() right inside your editor — no color picker round-trips, no manual math.
Features
- Convert any selected color to hex, rgb(), or hsl() with a single command.
- Cycle command rotates the color under your cursor through hex -> rgb -> hsl -> hex.
- Alpha preserved. Translucent colors become 8-digit hex,
rgba(), orhsla()automatically; opaque colors stay in the short form. - Multi-cursor friendly — every selection is converted in one edit.
- Empty selection? Hueshift grabs the color token under the cursor.
- Non-color selections are left untouched, so a stray command never mangles your text.
Supported input formats
#rgb#rgba#rrggbb#rrggbbaargb(r, g, b)rgba(r, g, b, a)hsl(h, s%, l%)hsla(h, s%, l%, a)
Usage
- Select a color (or place the cursor inside one).
- Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+P). - Run one of:
- Hueshift: Convert Color to Hex
- Hueshift: Convert Color to rgb()
- Hueshift: Convert Color to hsl()
- Hueshift: Cycle Color Format
Select multiple colors at once with multiple cursors to convert them all in one step.
License
Released under the MIT License. See the LICENSE file for details.