Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Color Code ConverterNew to Visual Studio Code? Get it now.
Color Code Converter

Color Code Converter

mattia.lau

|
1,888 installs
| (0) | Free
Convert Color string to Hex
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

Convert rgb, rgba, hsl, hsla to hex code
Convert hex to rgb, rgba, hsl, hsla

Command

  1. Convert Color to Hex
  2. Convert Hex to HSL
  3. Convert Hex to RGB

Test Result

// Convert Color to Hex
html {
  color: rgb(100, 100, 100, 0);
}

body {
  color: rgb(100, 100, 100);
}

// Result
html {
  color: [#64646400](https://github.com/mattia-lau/color-converter/issues/64646400);
}

body {
  color: #646464ff;
}

// Convert Hex to HSL
html {
  color: [#64646400](https://github.com/mattia-lau/color-converter/issues/64646400);
}

body {
  color: #646464ff;
}

// Result
html {
  color: hsla(0, 0%, 39.2%, 0);
}
body {
  color: hsl(0, 0%, 39.2%);
}

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft