bookmarklet.one

Color Palette Extractor Bookmarklet

Extract the color palette of any web page: text, background and border colors sorted by usage, with hex codes you can copy. Free bookmarklet, no extension.

Color Palette Extractor
← 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 Palette Extractor reads the colors a page actually renders and turns them into a palette you can copy. It goes through the visible elements, collects their computed text, background, border and SVG fill colors, merges duplicates and sorts the result by how often each color is used.

Because it uses computed styles rather than parsing CSS files, you get the real values after CSS variables, themes and utility classes have been applied. That makes it handy for designers doing competitor research, developers rebuilding a legacy site, or anyone who needs the brand blue without opening an image editor.

Each swatch shows its hex code, how many elements use it and in which role (text, background or border). Click a swatch to copy its hex value, or copy the whole palette as CSS custom properties or a JSON array for your design tokens.

What it does

  • Samples computed color, background-color, border colors and SVG fill/stroke of visible elements
  • Merges duplicates and sorts colors by number of uses
  • Shows where each color is used: text, background or border
  • Click a swatch to copy its hex code (semi-transparent colors get 8-digit hex)
  • Copy the full palette as CSS variables, a JSON array or a plain hex list

How to install the Color Palette Extractor 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. Open the page whose colors you want.
  2. Click Color Palette Extractor in your bookmarks bar.
  3. Scan the swatches: the most used colors come first.
  4. Click any swatch to copy its hex code, or use the buttons at the bottom to copy the whole palette.

Reading the palette

The top of the list is usually the page background and body text color, followed by brand and accent colors. Colors used only once or twice are often hover states, ads or embedded widgets. The tool only sees elements that are rendered right now, so open menus or switch to dark mode before running it if you want those colors too. Colors inside images, gradients and cross-origin iframes are not included, because they are not exposed as computed colors. For a single element, use Color Picker.

Bookmarklet code

This is the exact code inside the button above (8,481 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

Does it read colors from images?

No. It reads CSS colors of elements. Use the EyeDropper option in Color Picker to sample pixels from images.

Why are some colors missing?

Gradients, background images, canvas drawings and content inside cross-origin iframes do not have readable computed colors.

Can I export the palette?

Yes. Copy it as CSS custom properties, as a JSON array of hex values, or as a plain list.

Related bookmarklets

Pick colors from any web page: sample pixels with the EyeDropper or click an element to get its text and background color…

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

List every stylesheet on a page, linked, inline and adopted, with rule counts and sizes. Copy, view or download the CSS.…

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