Extract hex color codes from CSS, text, or code files. Drag & drop support, visual grid preview, and 1-click export to CSS, SCSS, JSON & Tailwind.
Paste text or upload files to extract & preview HEX colors • Supports #RGB, #RRGGBB • Click swatch to copy • Export ready
Paste text or upload a file to see colors here
Extract valid HEX color codes from CSS files, raw text, markup, or configuration files. This tool parses your input in real time, identifies#RGBand#RRGGBBvalues, removes duplicates, and displays every color in a responsive grid. Built for developers, designers, and QA engineers who need a fast, reliable way to audit and export palettes without leaving the browser.
#F0Aare automatically expanded to their full six-character equivalents.| Feature | Description |
|---|---|
| Local Processing | All parsing and file reading occurs in your browser. No data is uploaded to external servers. |
| Automatic Deduplication | Repeated hex values are filtered out, leaving a clean, unique palette. |
| Format-Agnostic Parsing | Works with CSS, SCSS, JavaScript, JSON, Markdown, HTML, and plain text files. |
| Real-Time Grid Preview | Extracted colors are displayed immediately with accurate contrast indicators for readability. |
| Multi-Format Export | Generate ready-to-use code blocks for modern and legacy styling workflows. |
Workflow Note: When exporting to Tailwind, the tool outputs a complete
module.exportsstructure. You can paste this directly intotailwind.config.jsto extend your color theme without manual formatting.
| Format | Output Structure | Primary Use Case |
|---|---|---|
| CSS Variables | Custom properties (--color-1: #...) |
Design tokens, vanilla CSS, component libraries |
| SCSS Map | Nested list structure ($palette: (...)) |
Sass-based projects and scalable stylesheets |
| LESS Variables | Flat declaration syntax (@color-1: #...) |
Legacy frontend stacks and framework overrides |
| Tailwind Config | JavaScript module export | Utility-first framework integration |
| JSON | Array structure ({ "colors": [...] }) |
API payloads, automated scripts, design system databases |
| SVG Grid | Inline vector layout | Presentations, documentation, and design software imports |
| Plain Text | Line-separated list | Quick sharing, version control diffs, and chat logs |
Yes. The parser recognizes three-digit hex values (e.g.,#3A7) and automatically converts them to their standard six-digit form (#33AA77) before displaying or exporting them.
The current implementation processes one file at a time to ensure accurate preview rendering. For large projects, we recommend concatenating your target stylesheets into a single file before uploading.
The tool handles files up to 15 megabytes. Larger files are restricted to maintain browser performance and prevent memory overflow during parsing.
Open your browser's developer tools, navigate to the Elements or Sources panel, copy the relevant CSS or HTML output, and paste it into the text area. The extractor will isolate every hex value used in the stylesheet or markup.
All exports are formatted according to official specification standards. CSS variables, SCSS maps, and Tailwind configurations are structured for immediate integration into modern build pipelines.