Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Universal Color PickerNew to Visual Studio Code? Get it now.
Universal Color Picker

Universal Color Picker

salamatao

| (0) | Free
Detects and edits colors in any file — HEX, RGB, RGBA, HSL, HSLA and Tailwind CSS classes. Shows inline color swatches and opens a native color picker on click. Supports color conversion between all formats.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Universal Color Picker

Detects and edits colors in any file — HEX, RGB, RGBA, HSL, HSLA and Tailwind CSS classes.

Features

  • Inline color swatches — a colored square appears next to every detected color
  • Native color picker — click any swatch to open VS Code's built-in color picker
  • All color formats — HEX (#fff, #ffffff, #ffffffff), RGB, RGBA, HSL, HSLA
  • Tailwind CSS — detects bg-red-500, text-blue-300, border-slate-200, etc.
  • Color conversion — switch between HEX / RGB / HSL directly in the picker
  • Alpha channel — full support for transparency in RGBA, HSLA and 8-digit HEX
  • Works everywhere — CSS, HTML, JS, TS, JSON, JSX, TSX, any file type

Usage

No setup needed. Open any file — color swatches appear automatically.

Click a colored square → pick a new color → it's written back in the original format.

Supported formats

Format Example
HEX 3 #fff
HEX 6 #ff6b6b
HEX 8 (alpha) #ff6b6b80
RGB rgb(255, 0, 0)
RGBA rgba(255, 0, 0, 0.5)
HSL hsl(0, 100%, 50%)
HSLA hsla(0, 100%, 50%, 0.5)
Tailwind bg-red-500, text-blue-300

Settings

Setting Default Description
colorPicker.enable true Enable/disable the extension
colorPicker.defaultFormat preserve Output format: preserve, hex, rgb, hsl
colorPicker.hexUppercase false Output HEX in uppercase
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft