This VS Code extension brings the one-to-many color translations of https://colorosetta.com/ to your editor!
Features
Translates selected text into 8 color formats: Hex (6), Hex (8), RGB, HSL, LCH, OKLCH, P3 and Named Colors
Can translate directly to each of those color formats.
(If you choose named, and there is no matching named color, you get a warning instead.)
rgb and hsl formats support the modern syntax with no commas, and the alpha channel after an optional / - e.g. rgb(255 255 255 / 50%)
Note: if translating from a color space with an alpha channel (e.g. modern rgb) to one without an alpha channel (e.g. Hex 6), the translated color assumes a #ffffff background
Installation
You can install through the extensions menu
Or, in the command palette, install extension then look for colorosetta