Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Random Hex CodeNew to Visual Studio Code? Get it now.
Random Hex Code

Random Hex Code

Piyush Bhatt

|
1,034 installs
| (1) | Free
Generate random hex color code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-random-hex

Random Hex Logo

Random Hex Code is a VSCode extension to generate or fill in random hex color code for aesthetically pleasing colors in your editor.

Features

Execute Random Hex commands from the VSCode command palette

  • Random Hex: Generate random color code: Generates a random hex color code and copies it to clipboard
  • Random Hex: Fill random color code in selection(s): Fills in a random hex color code in all the active selections. The same code is filled in all the selections.
  • Random Hex: Fill random color code uniquely in selection(s): Fills in a random hex color code uniquely in all the active selections. Differnet code is filled in each of the selections.
  • Random Hex: Set default config: Sets default values to golden ratio, saturation and value.

NOTE: Golden Ratio, Saturation and Value can be change in Random Hex Code settings.

Usage

Generate random color code #

Generate Random Hex

Fill random color code in selection(s) #

Fill Random Hex

Fill random color code uniquely in selection(s) #

Fill Random Hex Unique

Acknowledgement and Credits

A very nice article by Martin Ankerl which explains how to generate not just random but aesthetically pleasing random colors.

Icon is made by Freepik from Flaticon

License

MIT licensed.

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