b2KIT

Website Color Palette Extractor

Enter a URL and extract all colors used in the CSS as a organized palette with usage frequency.

Tested tool guide Tested browser tools Checked August 16, 2026

What Website Color Palette Extractor does and how it behaves

Feed it a URL and it reads the page's stylesheets: linked CSS files, embedded style blocks, and inline style attributes. Every color declaration it finds becomes an entry in a palette, with a usage count and a hex swatch, sorted from most to least frequent. The result is a map of the stylesheet, not of the screen. Colors that live only in unused rules, hover states, or media queries appear even though you never see them, while colors baked into images, SVG files, and canvases stay hidden. People usually trip over this gap first.

How the result is produced

1

Fetch and collect

The tool requests the URL from your browser, downloads the HTML, and gathers every stylesheet it references: external CSS files linked in the head, style blocks in the page, and style attributes on individual elements. It then walks the rules in those stylesheets and pulls out every declaration that carries a color: background, color, border, box-shadow, and so on.

2

Normalize and tally

Color values arrive in many notations: hex, rgb(), rgba(), hsl(), hsla(), and named colors such as rebeccapurple. The tool converts them to a comparable form, groups identical values, and counts how many times each appears. The finished palette lists the distinct colors ordered by that count, most frequent first, with the hex value and swatch for each entry.

Good uses

  • Rebuilding or restyling an existing site: hand the extractor the URL and get its exact color set, to match brand colors without hunting through developer tools.
  • Auditing your own stylesheet: spot stray one-off colors, near-identical grays, and entries nothing actually uses, then clean the CSS.
  • Kicking off a redesign or style guide: capture the current site's palette as a documented list of swatches and frequencies before any colors change.

Limits and checks

  • The palette is a map of the stylesheet, not the screen: every declaration counts, including hover states, media queries, fallback lines, and rules for elements that never render, while colors inside images, SVG artwork, or canvas drawing do not appear at all.
  • Frequency is declaration count, not visual weight: a full-page background used once ranks below a link color repeated in 200 rules, even though the background dominates the screen.
  • Notation affects grouping: the same color written as #fff, white, and rgb(255, 255, 255) may surface as one entry or several, depending on how the extractor normalizes values. Read the counts before treating apparent duplicates as real differences.

Common questions

Why does my URL return an empty palette?

Usually because the fetch failed. Pages behind logins, paywalls, or bot protection may refuse the request, and single-page apps that inject their CSS after load can look empty to a tool that reads the initial document. Try a public URL or plain HTML pages first. If the stylesheets load, an empty result is unlikely unless the page genuinely declares no colors.

Why is the page's main background color not at the top of the list?

Frequency counts how many times a color appears in the stylesheet, not how much space it covers on screen. One body background declaration counts once, while a border or link color repeated across hundreds of rules dominates the ranking. If you need colors ranked by visible area, this tool is the wrong one; measure the rendered page instead.

References and verification

The behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools