PNG Palette Extractor: Hex, WCAG Contrast + CSS Variables

    1

    Dominant colours of a PNG as hex with WCAG contrast vs white/black and CSS variables, offline.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    PNG Palette Extractor: Hex, WCAG Contrast + CSS Variables

    Example session with this skill installed

    A 128x128 four-colour app icon PNG, 5 colours.

    • Read your context and instructions
    • Compiled the png palette extractor

    hex share vs white vs black best text AA body text on white
    #fbc118 25.1% 1.65 12.74 #000000 no
    #299a48 25.0% 3.61 5.81 #000000 no
    #e0392c 24.9% 4.38 4.79 #000000 no
    #1c74e8 16.5% 4.46 4.71 #000000 no

    :root {
      --brand-1: #fbc118;
    

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Point it at a PNG logo or screenshot and get its dominant colours as hex codes with share of pixels, WCAG contrast against white and black, which text colour reads better on each, an AA pass flag, and a ready :root CSS variables block. Transparent pixels are ignored. Pure Python stdlib with its own PNG decoder; nothing is uploaded.

    PNG only (no JPEG/WebP/SVG); 16-bit and interlaced PNGs are refused. Large images are sampled to about 40k pixels. Colours are cluster averages, so exact brand hex codes may differ by a few units.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 22 days ago

    • Free with an Agensi account

    Requires

    Python 3.8+
    Python

    Permissions

    File Scopes

    reads
    the
    PNG
    you
    pass;
    prints
    to
    stdout;
    writes
    no
    files

    Network: none. Runs offline.

    Listed22 days ago

    What's inside

    Frequently Asked Questions

    No, PNG only (stdlib has no JPEG decoder).

    They are cluster averages; flat-colour logos come out within a few units.

    New in Productivity