bookmarklet.one

Color Picker Bookmarklet

Pick colors from any web page: sample pixels with the EyeDropper or click an element to get its text and background color in HEX, RGB and HSL. Free.

Color Picker
← Drag this button to your bookmarks bar.Click it here to try it on this page first.

On a phone? Use Copy code, then save it as a bookmark's URL — step-by-step guide.

Design CSSUpdated 2026-11-27Free · No extension · Runs locally

Color Picker gives you two ways to grab a color from the page you are looking at. In browsers that support the EyeDropper API (Chrome, Edge and Opera on desktop), a Pick from screen button lets you sample any pixel, including photos, gradients and logos. In every browser, element mode is on as soon as the panel opens: click any element and you get its text color and its effective background color.

Every result is shown in HEX, RGB and HSL with its own copy button, so you can paste straight into CSS, Figma or a design ticket. The effective background is found by walking up the parent elements until a non-transparent background is found, which is the color you actually see behind the text.

Recent picks stay in a small history row so you can compare shades and copy them again. Clicks are captured while the panel is open, so links and buttons will not fire by accident.

What it does

  • Pick from screen button using the native EyeDropper API where available
  • Element mode: click any element to read its text color and effective background color
  • Each color in HEX, RGB and HSL, each with a copy button
  • History row of your recent picks (click to copy again)
  • Hover outline shows which element you are about to sample; Esc closes the tool

How to install the Color Picker bookmarklet

  1. Show your bookmarks bar. Press Ctrl+Shift+B on Windows/Linux or Cmd+Shift+B on a Mac (Chrome, Edge, Brave, Firefox). In Safari choose View › Show Favorites Bar.
  2. Drag the blue button above onto the bar. That's it — the bookmark now holds the code.
  3. Open any website and click the bookmark to run it on that page. Click it again to close it.

Can't drag (phone, tablet, locked-down browser)? Copy the code below, create any bookmark, then edit it and paste the code as its URL. See how to add a bookmarklet in every browser.

How to use it

  1. Click Color Picker in your bookmarks bar; a panel opens in the top-right corner.
  2. Click any element on the page to read its text and background colors, or press Pick from screen to sample a single pixel.
  3. Press the copy button next to the HEX, RGB or HSL value you need.
  4. Press Esc or the × button when you are done; the page works normally again.

Element mode vs. EyeDropper

Element mode returns the CSS color values, which is what you want when you are rebuilding a component: exact, without antialiasing or image compression. The EyeDropper samples screen pixels, so it can read photos and gradients, but text edges may return a blended shade. If the background shows "(page default)", no element sets a background and the browser's white canvas is showing through. Semi-transparent colors are reported with their alpha in RGB and as 8-digit hex.

Bookmarklet code

This is the exact code inside the button above (9,293 characters). It runs only in your browser and sends nothing to us. Paste it into the Bookmarklet Decoder to read it formatted.

Frequently asked questions

Which browsers support Pick from screen?

The EyeDropper API works in Chrome, Edge and Opera on desktop. Firefox and Safari get element mode, which works everywhere.

Why does a clicked link not open?

While the picker is active it captures clicks so you can sample links and buttons. Close the panel to use the page normally.

Can I get the color of an image?

Yes, with Pick from screen in a supported browser. Element mode only reads CSS colors.

Related bookmarklets

Extract the color palette of any web page: text, background and border colors sorted by usage, with hex codes you can…

Hover text to see its font stack, the font actually rendered, size, weight, line height and color, plus a summary of all…

Hover any element to see its tag, ID and CSS classes, then click to copy a unique CSS selector. A free bookmarklet for…

Strip all colors, backgrounds and shadows from a web page and read it as plain black text on white. Click again to…