CSS Color Extractor
Extract every colour used in a stylesheet — hex, rgb, and hsl — into one list, so you can audit a palette or spot the near-duplicates that crept in.
100% in your browser — your code never leaves this tab. No sign-up, no limits.
Tools
CSS Color Extractor
Pull every colour out of a stylesheetPaste CSS, drop a file, or
CSS Color Extractor — Frequently Asked Questions
Nobody decides to use fifty colours. What happens instead is that each individual change is reasonable — a developer matches a mockup by eye, a component arrives from another project with its own greys, a hover state gets darkened by a few percent inline, a third-party widget brings its own brand colour. Because CSS has no mechanism that objects to a new literal value, none of these decisions is ever flagged. The drift only becomes visible when you look at every colour in the file at once, which is the point of extracting them.
The natural next step after an audit is to give the colours you keep a name. Define them once as custom properties on :root, group them by role rather than appearance — a token called --text-muted survives a rebrand in a way that --grey-6 does not — and replace the literals as you touch each rule. This is not a change you have to make all at once. Consolidating the few colours that appear most often already removes most of the ambiguity, and it gives future changes a single place to happen.
Mostly for auditing a palette you did not design. Inheriting a stylesheet and wanting to know what colours it actually uses, checking whether a redesign has been applied consistently, or finding the seven slightly different greys that accumulated because nobody knew a token already existed — those are the cases where a flat list beats reading the file. It is also a fast way to build the starting point for a set of CSS custom properties, since you can see which values repeat often enough to deserve a name.
It looks for hex, rgb, rgba, hsl, and hsla values, which is how the large majority of production CSS specifies colour. Named keywords such as red or rebeccapurple are not collected, and neither are var() references, since the value of a custom property is defined elsewhere and only resolved at runtime. If your stylesheet is built on design tokens, run the file that defines those tokens — that is where the literal values live.
Because palettes drift. Colours arrive from design handoffs, from copied components, from a developer eyedropping a mockup, and from third-party CSS, and none of those routes checks whether a similar value already exists. A stylesheet with a documented palette of eight colours routinely turns out to use fifty. Seeing them listed together is what makes the duplication obvious, and consolidating onto custom properties is what stops it recurring.
Not directly — contrast is a relationship between two colours, so a flat list cannot tell you whether any specific text passes. What it gives you is the inventory: once you know a stylesheet uses a particular grey for body text, you can check that grey against your background colours in a contrast checker. For real accessibility auditing, test the rendered page with a tool like Lighthouse or axe, since those see the combinations that actually occur.
No. Every one of these tools runs entirely in your browser using JavaScript. Your stylesheet is never uploaded, never logged, and never sent to any server — you can confirm this by opening your browser devtools Network tab while you work, or by disconnecting from the internet after the page loads and watching everything continue to function. That makes it safe to paste proprietary or client CSS.
CSS Tools
Edit CSS against real markup with a live preview, then format it, minify it, sort properties so diffs behave, add the prefixes older engines still want, or pull out every colour and selector a file contains. All of it runs on your own machine.

CSS Editor
Write CSS against real markup and watch every change land in the preview.

CSS Formatter
Turns a minified or inconsistent stylesheet into rules you can read and review.

CSS Minifier
Cuts comments, whitespace and slack from a stylesheet, and counts the bytes saved.

CSS Property Sorter
Alphabetises declarations inside every rule so diffs stop moving around between edits.

CSS Comment Remover
Deletes every comment and leaves the rules exactly as they were.

CSS Vendor Prefixer
Adds the -webkit- and -moz- prefixes older engines still need to apply your rules.

CSS Color Extractor
Pulls every hex, rgb and hsl value out of a stylesheet into one auditable list.

CSS Selector Extractor
Lists every selector in order, which makes it obvious what a file actually targets.

CSS Viewer
Preview a stylesheet against a sample page and judge colour, spacing and layout.

CSS Validator
Catches unbalanced braces, missing semicolons and the property names you misspelled.
Customer Reviews
0 out of 5 stars
Based on 0 reviews
Review data
5 star reviews
- 0%
4 star reviews
- 0%
3 star reviews
- 0%
2 star reviews
- 0%
1 star reviews
- 0%
Share your thoughts
If you've used this tool, share your thoughts with other users
Recent reviews
Latest Articles
Tips, guides, and insights from our blog
How to Create Strong Passwords in 2026: A Simple Guide
Practical tips for creating passwords that actually keep your accounts safe. Covers password security, managers, and two-factor authentication — no fluff.
What is a UUID? Complete Guide to Unique Identifiers
A straightforward look at UUIDs — what they are, how they work, and how to actually use them in your apps.
What is Lorem Ipsum? History, Meaning, and Modern Uses
The 2000-year story of Lorem Ipsum — from Cicero's Latin philosophy to modern web design. Plus why designers still use it and how to generate it yourself.
URL Slugs: The Complete SEO Guide for 2026
What URL slugs are, why they matter for search rankings, and how to get them right. Covers best practices and common mistakes to watch out for.