Color Palette Extractor: web pages and images to hex palettes
Pricing
from $3.00 / 1,000 url analyzeds
Color Palette Extractor: web pages and images to hex palettes
Pull the colors a competitor's site or a campaign image uses. It loads each page in a browser and captures the first screen (or the whole page), or reads each image, and returns its main colors with hex, RGB and the share of the pixels each covers, plus the page's CSS color variables.
Pricing
from $3.00 / 1,000 url analyzeds
Rating
0.0
(0)
Developer
Ed Rayyis
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Features
Share
Give it web pages, image links, or both in one list. It returns the dominant colors of each one with the hex code, the RGB values and the share of the visible pixels each color covers, largest first.
Web pages are rendered in headless Chrome, so the palette is what a visitor sees, including colors set by JavaScript, background images and photos. For each page you also get the CSS custom properties (variables such as --brand-primary) whose value is a color, with the resolved hex, and the page's theme-color meta tag.
Images are read directly: JPEG, PNG, GIF, WebP, AVIF, BMP, TIFF and SVG. Transparent pixels are left out, so a logo on a transparent background gives the logo's colors only. SVG files are drawn at up to 1,200 pixels on a side and read the same way.
Close shades are merged into one color, so the palette shows distinct colors and not several versions of near black.
Use it for
- Pulling the brand colors off a competitor's or a client's page without opening a design tool.
- Building a palette from a campaign image or a logo.
- Listing the CSS color variables a site declares, with the resolved hex for each.
Sample
Input, one page:
{ "urls": [{ "url": "https://apify.com" }] }
The run returned one row with 8 colors from the first screen at 1280 by 800, largest first. The largest was #020202 at 81.63% of the pixels, and the smallest was #e56417 at 0.43%. The page's theme-color tag read #020202, and the row also lists the page's CSS color variables.
{ "hex": "#020202", "rgb": [2, 2, 2], "share": 0.8163 }
Input
- Web pages or image URLs (required). The actor reads the type from the server's answer.
- Colors per palette (default 8, 2 to 32)
- Whole page (default off: the first screen only)
- Browser width and height for web pages (default 1280 by 800)
- CSS color variables (default on)
- Timeout per URL (default 45 seconds)
Output
Dataset: one item per URL with url, ok, source (page, image or svg), finalUrl, status, contentType, width and height (of the image, or of the captured page area), format for images, title for pages, and colors: a list of hex, rgb and share (0 to 1). hexList repeats the hex codes as a plain list.
For web pages: themeColor, cssColorVariables (each with name, value as written, declaredOn (the selector), hex, rgb and alpha), cssColorVariableCount, and unreadableStylesheets (style sheets from another site that the browser does not let a page script read).
A URL that cannot be read gets ok: false and an error, such as HTTP 404 or an unknown host, and the rest of the run carries on. Export as JSON, CSV or Excel, or read it over the API.
Pricing
Pay per event: one event per URL analyzed. A URL that fails is not charged. The run stops when it reaches the maximum charge you set.
Scope and conduct
Only the URLs you supply are opened, one at a time, each in a fresh browser with no cookies carried over. The actor does not log in anywhere, click anything, or collect personal data. Analyze pages and images you are allowed to use.
Related actors
From the same account, for checking a website:
- WCAG Checker: axe-core accessibility audit for pages and sites
- Lighthouse Audit: bulk speed, SEO and accessibility scores
- Site Audit: on page SEO and broken link checks
Support
Questions and problems: the Issues tab on this page.