HTML Color Picker

Pick any color with the native browser color picker and instantly see HEX, RGB, HSL, and CSS name. Saves your last 12 colors as swatches for quick access. Free, works entirely in your browser.

Did we solve your problem today?

What Is an HTML Color Picker?

An HTML Color Picker lets you choose any color visually using the browser’s built-in color dialog. Pick a color with the slider or by entering a hex value in the dialog, and all formats — HEX, RGB, HSL, and CSS Name — appear instantly. No typing required.

Color History — Your Last 12 Colors

Every color you pick is automatically saved as a swatch below the output. The history holds up to 12 colors. Click any swatch to restore that color instantly. Swatches are stored in your browser’s localStorage — they persist between sessions without any account or upload.

Output Formats Explained

FormatExampleUse Case
HEX#3b82f6CSS, HTML, design tools (Figma, Sketch)
RGBrgb(59, 130, 246)CSS, Canvas API, image processing
HSLhsl(217, 91%, 60%)CSS custom properties, theme tokens
CSS NamecornflowerblueReadable code, quick prototyping

Click Copy next to any format to copy it to your clipboard.

When to Use the Picker vs. the Converter

Use the Color Picker when you want to choose a color visually and track your recent picks. Use the Color Format Converter when you already have a color value (e.g. from a design file) and need to translate it between formats.

How the Color History Works

The swatch history uses the browser’s localStorage API. Each new color is added at the front and duplicates are removed automatically, so the list always shows your most recent unique picks. When the list reaches 12 colors, the oldest one is dropped. Click “Clear History” to reset all swatches.

Privacy

All color math and history storage happen entirely in your browser using JavaScript and localStorage. No color values are ever sent to a server, logged, or shared. Clearing browser storage removes all saved swatches.

FAQ

What is the difference between this and a color format converter?

The Color Format Converter accepts typed input (e.g. rgb(255,0,0) or coral) and converts between formats. This Color Picker uses the native browser color picker widget — you choose visually, and it instantly shows all formats. It also remembers your last 12 picked colors as swatches.

How does the color history work?

Every time you pick or change a color, it is automatically saved as a swatch. The history holds up to 12 colors. Clicking a swatch restores that color and moves it to the front. You can clear all swatches with the "Clear History" button.

What color formats are shown?

HEX (e.g. #3b82f6), RGB (e.g. rgb(59, 130, 246)), HSL (e.g. hsl(217, 91%, 60%)), and CSS Name if the color matches one of the 148 standard CSS named colors. Each format has its own Copy button.

Is my color data sent to a server?

No. Everything happens locally in your browser. The color history is stored in your browser's localStorage — it never leaves your device and is not sent to any server.