Website Color Palette: Hex Colors from a URL avatar

Website Color Palette: Hex Colors from a URL

Pricing

from $18.90 / 1,000 page with colors

Go to Apify Store
Website Color Palette: Hex Colors from a URL

Website Color Palette: Hex Colors from a URL

Extract the color palette of any website from its URL: most used hex colors with counts and where they are used (background, text, border), theme color, favicon and og:image dominant colors and a primary brand color guess. HTTP only, no browser. Empty input = free demo.

Pricing

from $18.90 / 1,000 page with colors

Rating

0.0

(0)

Developer

Actor Factory

Actor Factory

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Features

Limited permissions

Share

Website color palette: extract the hex colors of any website from its URL — the most used colors with how often and where they are used, the theme color, the favicon and share-image colors, and a guess at the primary brand color.

urlthemeColorprimaryGuesspalette (top 3)
https://demo.example/#0B5FFF#0B5FFF#0B5FFF (score 11), #FAFAFA (6), #FFFFFF (5)

(output of the free demo on the bundled sample page; each row also has the full palette and dominantImageColors)

For designers, marketers and developers who need a website's colors but have no time to open dev tools: match a client's brand colors in a pitch or mockup, build a competitor color comparison, theme an app or newsletter to a partner's site, enrich a list of company sites with their brand color, or check that a site really uses the colors its brand guide says.

Try it: press Start with the prefilled example (2 sites). You get one row per site in a few seconds. Clear the list and press Start for a free demo on a bundled sample page (the row carries _demo: true, not charged, no network).

What you get

  • Palette: the most used colors (default 10, up to 50) as hex and rgb, with count (how many times it appears), a weighted score and sources (where it is used: background, text, border, svg, shadow, variable, theme-color). Colors are read from hex (#0b5fff, #fff), rgb() / rgba(), hsl() / hsla(), named colors (tomato) and CSS custom properties (--brand: #0b5fff), including gradients. Fully transparent colors are ignored.
  • Weighted by use: a color in a background counts 3, in text 2, SVG fill/stroke 1.5, border 1, custom property 1, shadow 0.5; the theme color counts 5. Colors from third-party CDN stylesheets (Bootstrap and similar) count a quarter, so the site's own colors win.
  • Theme color: <meta name="theme-color"> (or msapplication-TileColor) as hex.
  • Image colors (dominantImageColors): the dominant colors of the favicon (apple-touch-icon preferred, else the icon, else /favicon.ico) and the og:image, found with Pillow quantize, with each color's share of the image. SVG icons are skipped.
  • Primary color guess (primaryGuess and primaryGuessReason): the theme color if it is colorful, else the most used colorful CSS color, else a colorful image color. Only a guess: check it against the palette.
  • Options: Max colors, CSS colors / image colors on or off, leave out white, black and grays, respect robots.txt.
  • Accepts domains or URLs (apify.com, https://www.python.org/about/); without a scheme, https:// is used. Up to 500 per run.

How to use

  1. Websites: one URL or domain per line (up to 500; duplicates are removed).
  2. Optional: Max colors, the CSS / image switches, Leave out white, black and grays.
  3. Press Start. Export the table as CSV, JSON or Excel, or read it with the API.
{ "urls": ["https://apify.com", "https://www.python.org"], "maxColors": 10 }

Output

{
"url": "https://demo.example/", "finalUrl": "https://demo.example/", "status": "ok",
"themeColor": "#0B5FFF", "primaryGuess": "#0B5FFF", "primaryGuessReason": "theme-color",
"palette": [
{"hex": "#0B5FFF", "rgb": [11, 95, 255], "count": 4, "score": 11.0, "sources": ["background", "text", "theme-color", "variable"]},
{"hex": "#FAFAFA", "rgb": [250, 250, 250], "count": 2, "score": 6.0, "sources": ["background"]}
],
"dominantImageColors": [
{"hex": "#0B5FFF", "rgb": [11, 95, 255], "share": 0.625, "source": "favicon"}
],
"stylesheetsAnalyzed": 1, "imagesAnalyzed": 1, "error": null
}

(row from the bundled demo)

  • status — ok (at least one color found; charged), no_colors, blocked_by_robots, not_html, error (the page could not be fetched) or invalid_input. Only ok is charged.
  • palette[] — sorted by score, then count. count is the number of times the color appears; score is the weighted value.
  • error — e.g. invalid_url, blocked_private_address, disallowed_by_robots_txt, dns_failure, timeout, http_404, not_html: ..., no_colors_found.
  • SUMMARY record: URLs analyzed, ok, no colors, blocked by robots.txt, not HTML, errors, invalid input and charged pages.

Notes and limits

  • Plain HTTP, no browser. Colors that JavaScript adds after the page loads, or CSS injected by scripts (CSS-in-JS), are not seen; a page that renders entirely in JavaScript may return few colors or no_colors. Sites that block automated requests may return an error.
  • What is read: the page, up to 8 stylesheets linked from it (from the same site and common CDNs such as jsDelivr, cdnjs, unpkg; Google Fonts CSS is skipped), up to 2 image files (favicon, og:image), plus robots.txt. No crawling. Limits: HTML 1.5 MB, each stylesheet 500 KB (2 MB in total), each image 3 MB.
  • Counts are of the code, not of what is visible: a color that appears in a stylesheet for a part of the site you did not open is counted too. @imported stylesheets are not fetched; dark-mode and print rules inside the files read are counted like any other rule.
  • Polite by design: robots.txt is respected by default (disallowed pages are free with status blocked_by_robots; Crawl-delay is honored up to 10 s), one request at a time per host with at least 0.25 s between requests, generic User-Agent that names this Actor, up to 2 retries on timeouts, 429 and 5xx errors. Turn robots.txt off only for sites you may fetch anyway.
  • Safe by design: addresses that resolve to internal networks (localhost, private ranges, link-local such as 169.254.169.254, IPv6 loopback/unique-local) are never contacted, including redirect targets and stylesheet or image URLs.
  • Brand colors and logos belong to their owners. This Actor reports which colors a page's code uses; check that your use is allowed.

Pricing

EventFree planPaid plans (Store discount tiers Bronze / Silver / Gold)
Page with colors (at least one color found)$27 per 1,000$24.30 / $21.60 / $18.90 per 1,000

The price on this page ("from $0.0189") is the Gold tier price. You pay only for pages where at least one color was found. Errors, non-HTML files, pages without colors, pages blocked by robots.txt, invalid input and the free demo are not charged. On the Apify Free plan, the $5 of monthly platform credit covers about 185 pages a month.

FAQ

Why do white and black appear in my palette? Most sites use them a lot. Switch on Leave out white, black and grays to keep only the colorful ones; primaryGuess already prefers a colorful color.

Is primaryGuess always the logo color? No. It is the theme color if the site sets a colorful one, otherwise the most used colorful color in the CSS. Look at palette and dominantImageColors to confirm.

Why is a color I see on the page missing? It may be drawn by an image, a canvas or a script, or come from a stylesheet on a host this Actor does not read (only the same site and common CDNs). Colors inside images are covered only for the favicon and the og:image.

Does it respect robots.txt? Yes by default: pages, stylesheets and images that robots.txt disallows are not fetched.

If this Actor saved you time, a rating on the Store helps others find it.

More tools from the same developer

  • Favicon Extractor — favicons, Apple touch icons and manifest icons of many websites, with the best icon per site
  • Website Technology Detector — tech stack of websites in bulk: CMS, frameworks, analytics and tag IDs, CDN, consent tools
  • Website Screenshot — screenshots and PDFs of web pages: full page, mobile, element, no cookie banners
  • Website Image Extractor — every image on your pages with alt text, srcset, size and type (HEAD only), flagging missing alt and oversized images