Website Color Palette — CSS Colors With Alpha and Usage Counts avatar

Website Color Palette — CSS Colors With Alpha and Usage Counts

Pricing

from $0.80 / 1,000 page parseds

Go to Apify Store
Website Color Palette — CSS Colors With Alpha and Usage Counts

Website Color Palette — CSS Colors With Alpha and Usage Counts

Website color palette: Static CSS color literals, alpha values and occurrence counts. $0.001 per page parsed; start extra; usage included; failed results uncharged.

Pricing

from $0.80 / 1,000 page parseds

Rating

0.0

(0)

Developer

Logan Parker

Logan Parker

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Website color palette extraction reads declared CSS color literals from public HTML and bounded linked stylesheets, returning alpha and occurrence counts without rendering or claiming visual dominance. AI agents can call and pay through Apify MCP. List event rates are $0.001 per page parsed; start is extra, usage is included and failed results are uncharged.

Example result

Example record for the minimal input under How to use it, as this Actor returned it on 2026-10-30 in a run of its production image; the record is kept unchanged with the release.

{
"url": "https://docs.apify.com/",
"ok": true,
"colors": [
{
"hex": "#2a2a2a",
"alpha": 1.0,
"occurrences": 5
},
{
"hex": "#454545",
"alpha": 1.0,
"occurrences": 5
},
{
"hex": "#0f0f0f",
"alpha": 1.0,
"occurrences": 3
},
{
"hex": "#14441f",
"alpha": 1.0,
"occurrences": 3
},
{
"hex": "#152447",
"alpha": 1.0,
"occurrences": 3
},
{
"hex": "#1d1d1d",
"alpha": 1.0,
"occurrences": 3
},
{
"hex": "#246dff",
"alpha": 1.0,
"occurrences": 3
},
{
"hex": "#383838",
"alpha": 1.0,
"occurrences": 3
},
{
"hex": "#672523",
"alpha": 1.0,
"occurrences": 3
},
{
"hex": "#ef6045",
"alpha": 1.0,
"occurrences": 3
},
{
"hex": "#00531e",
"alpha": 1.0,
"occurrences": 2
},
{
"hex": "#006e29",
"alpha": 1.0,
"occurrences": 2
}
],
"colorCount": 12,
"stylesheetCount": 0,
"parsedDeclarations": 183,
"warnings": [
"stylesheet_too_large",
"unsupported_color_syntax"
]
}

How to use it

Start a run in Apify Console, by API or from an agent with an input like this one — it is the input Apify runs every day to test this Actor:

{"urls": ["https://docs.apify.com/"]}

Start with the minimal JSON example above, then adjust the fields in the table below. Read the Example result and Output fields sections for the returned record, Errors for failure codes, and Events and prices for result events and the separate platform start.

FieldTypeMeaning
urlsarray1–20 public HTML pages, up to 1 MB each; at most five initially same-origin linked stylesheets, 200 KB each. Static CSS Color 3 literals only, with alpha; no rendered dominance, JavaScript, variable resolution, modern color functions or variable names. Refused/unreadable CSS is a partial-result warning.
maxColorsintegerMaximum literal colors returned, ordered by occurrence then hex/alpha.
maxStylesheetsintegerMaximum initially same-origin linked stylesheets fetched.

Events and prices

EventTitleCharged whenFREE / BRONZESILVERGOLD / PLATINUM / DIAMOND
page-parsedPage parsedOne successful input processed and its readable result written.$0.001$0.0009$0.0008

Platform usage is not passed through. Apify's automatic actor-start event remains $0.00005 per started GB (one GB or less counts once). The synthetic dataset-item event is absent. Charge limits stop further paying work; unprocessed inputs receive uncharged errors. Completed readable pending events are settled on abort.

Worked cost example: ten successful page parsed events cost $0.01 at list, plus actor start. Failures are not included in that count.

Call it from an agent

Through Apify's MCP server (https://mcp.apify.com) use call-actor:

{
"actor": "hermeskd/website-color-palette",
"input": {
"urls": [
"https://docs.apify.com/"
]
},
"callOptions": {
"maxTotalChargeUsd": 0.1,
"timeout": 600
},
"waitSecs": 30
}

Then call get-dataset-items with the returned defaultDatasetId. Dedicated tool URL: https://mcp.apify.com?tools=hermeskd/website-color-palette

Output fields

FieldMeaning
urlThe original input entry.
okTrue for a returned result; a failure is never charged.
colorsCanonical hex, alpha and literal occurrence count only.
colorCountNumber of returned colors.
stylesheetCountLinked stylesheets successfully parsed.
parsedDeclarationsCSS declarations inspected.
warningsPartial-result limitations/refusals, never raw source text.
errorFailure, always uncharged.

Limits and run time

1–20 public HTML pages, up to 1 MB each; at most five initially same-origin linked stylesheets, 200 KB each. Static CSS Color 3 literals only, with alpha; no rendered dominance, JavaScript, variable resolution, modern color functions or variable names. Refused/unreadable CSS is a partial-result warning.

The default run timeout is 600 seconds. Three local cold typical calls took 8.6–9.7 seconds including container startup. Source latency and platform startup vary.

Errors

CodeMeaning
http_errorThe source answered an unsuccessful HTTP status.
download_failedThe request or connection failed within its bounded deadline.
unsupported_content_typeThe response is not HTML.
robots_disallowedrobots.txt forbids fetching the URL; no request was made to it.
blocked_hostThe host is on the deny-list or resolves to a private or local address; no request was made.
too_largeThe response exceeded the size cap.
timeoutThe input did not finish within the run's time budget.
invalid_inputThe run input passed the input schema but cannot be used; the message names the field.
internal_errorUnexpected failure; the message carries the error class.
charge_limit_reachedThe run reached its maximum total charge; this input was not processed.

No failure record is charged. A run fails only when all input outcomes are Actor-side failures; caller errors and a mixture of caller/Actor failures do not fail the run.

Sources and terms

Only process content you have the right to process. URL fetches obey HermesBot robots-group selection, the shared deny-list, public-address checks on connections and redirects, honest identity, deadlines and rate limits. No caller credentials, cookies, CAPTCHA solving, residential proxies or evasion. Caller-authorized public pages under the shared fetch policy. Documentation prefill is Apache-2.0 and robots permits it; W3C document permissions and tinycss2 BSD-3-Clause license read. Only numerical color values/counts are returned; no contacts, social links or page text.

Not affiliated

This independently developed Actor is not affiliated with the named source providers or model authors.

Changelog

  • 1.0 (2026-10-30) — first implementation; demand-led wave 3.