Free tool

Runs in your browser

CSS Color Analyzer

Paste your CSS and see every color, the near-duplicates, and the contrast problems it states. Your CSS never leaves your browser.

What it does

Paste a stylesheet and see every color it uses, sorted by how often it appears. The analyzer groups colors that are almost the same, lists text and background pairs that fail contrast, and shows what it could not judge.

How to use it

  1. Paste your CSS, up to 1 MB, or try the built-in example.
  2. Open the tabs: Colors, Near-duplicates, Contrast, and Coverage.
  3. For each failing pair, copy the nearest color that reaches 4.5:1. Merge near-duplicates in your own code.

What it reads, and what it doesn't

The analyzer reads the CSS as written. It checks the pairs the CSS itself declares: a color and a background in the same rule, or variables named as a pair, such as --primary and --primary-foreground. It does not render a page, so gradients, colors set by scripts, and backgrounds it can't know are listed as "can't evaluate" instead of being guessed. Near-duplicates are found by distance in OKLab; colors with a different job, state, or mode are never grouped, and nothing is merged for you. Your CSS is read on your device and never uploaded.

Related: Website Color Audit · Contrast Checker

Private by design

Your code never leaves your browser. Colors you type here stay on your device.

Results use the same color engine as the builder, judged on the final 8-bit colors, with WCAG 2.2 deciding pass or fail.