Tools38

Stylesheet Token Audit

CSS Color Extractor.

Spot hardcoded color sprawl in CSS, HTML, or SVG files and consolidate near-duplicates into clean tokens.

Export palette

Import colors

Paste CSS variables, JSON tokens, a Coolors URL, or comma-separated HEX / RGB / OKLCH values (3–8 colors).

Try:

Saved Palettes

Stored in your browser cache—no account required.

Blog How to extract and consolidate colors from CSS files Read the guide

Extract, count, and consolidate colors from CSS, SCSS, HTML, and SVG files locally

Growing codebases accumulate dozens of nearly identical grays, borders, and brand tints across stylesheets. Paste code or drop a local file to extract every #HEX, rgb(), hsl(), and oklch() token, rank usage counts, and merge near-duplicates within ΔE < 3.0.

Client-side stylesheet color auditor with CIELAB ΔE near-duplicate clustering and Tailwind v4 mapping.
QUICK VIDEO TUTORIAL How to extract and consolidate colors from CSS files Audit legacy stylesheets locally and merge near-duplicate HEX codes within ΔE < 3. Watch the video

How to extract and consolidate colors from CSS files

Clean up legacy stylesheets without uploading proprietary code

Design System Audits

ΔE < 3 consolidation

Automatically flags near-identical grays like #F8FAFC and #F9FAFB that belong under one token.

Tailwind Migration

Closest Tailwind v4 tags

Every extracted color displays its nearest canonical Tailwind v4 utility token.

100% Client-Side

Zero code uploads

Source files are parsed exclusively in browser memory—safe for private client repositories.

Key capabilities

Closest Tailwind v4 & Classic RAL

Finds nearest official Tailwind CSS tokens and Classic RAL paint standards with perceptual ΔE scores.

Split swatch proof

Each match row displays a 50/50 split swatch and exact ΔE perceptual distance for visual verification.

6 live bidirectional color spaces

Converts simultaneously between HEX, OKLCH, RGB, HSL, D65 CIELAB, and process CMYK.

Omnibox parsing

Type or paste in any card—or drag perceptual OKLCH sliders—to update all six spaces in real time.

11-step 50–950 shade scales

Builds smooth tints and shades in OKLCH while pinning your exact input HEX at its natural lightness stop.

Anchor accuracy

Click any tile from 50 to 950 to copy its HEX, OKLCH, RGB, or HSL code immediately.

Synced active palette across tools

Move freely between Generator, Visualizer, Contrast, Tailwind, and Vision without re-entering colors.

How state travels

Your active palette syncs automatically in browser storage across every module, and visiting any tool directly starts from a fresh harmonious palette.

Formats & privacy

Supported inputs
Pasted or Local .css, .scss, .html, .svg, or JS Config File
Outputs & exports
Frequency-Ranked Color Audit, ΔE < 3 Consolidated CSS Variables & Palette Sync

Supports 3 to 8 active palette roles with unlimited local saves and exports—no account required.

All color math, simulations, and exports run locally in your browser while syncing your active palette across tools.

FAQ

Good to know.

A few answers before you get started.

On your device
Which color syntaxes are detected?

The extractor parses 3/4/6/8-digit #HEX codes alongside functional rgb(), rgba(), hsl(), hsla(), and CSS Color 4 oklch() declarations while ignoring commented-out CSS blocks.

How does Consolidated (ΔE < 3) mode clean up stylesheets?

It groups nearly indistinguishable hardcoded colors (such as #F8FAFC and #F9FAFB) under their most frequent canonical swatch and lists which duplicates were merged.

Are CSS comments ignored during extraction?

Yes. Block comments (/* ... */) are stripped automatically so commented-out legacy rules do not skew your occurrence counts.

Can I load the extracted stylesheet colors into my Active Palette?

Yes. Click Use Top 5 to push the most frequent colors directly into the Active Palette bar for contrast testing or theme generation.

Language38

EnglishالعربيةFrançaisItalianoDeutschEspañolPortuguêsNederlandsРусскийTürkçe日本語中文हिन्दीBahasa IndonesiaBahasa Melayu한국어Tiếng ViệtไทยPolskiSvenskaУкраїнськаNorskবাংলাΕλληνικάفارسیاردوČeštinaDanskMagyarRomânăSuomiБългарскиFilipinoქართულიSlovenčinaAzərbaycancaעבריתSlovenščina