Advertisement

Extract hex colors

Find hex color codes in CSS, design files, and any text, from #fff to #ff5733aa.

Extract Hex Colors

Paste CSS or text below and color codes are listed.

Advertisement

3, 6, and 8-digit codes

Short #fff, standard #ff5733, and alpha-channel #ff5733aa codes are all matched. The pattern requires a word boundary after the code so #12345 does not partially match.

Palette auditing

Dedupe turns a whole stylesheet into its unique color palette in one click, which is handy for design audits, brand consistency checks, and building theme documentation.

Extract Hex Colors FAQs

Which hex formats are detected?
Three-digit (#fff), six-digit (#ff5733), and eight-digit with alpha (#ff5733aa). Uppercase and lowercase hex digits both match.
Does it match #12345?
No. Five-digit sequences are not valid hex colors, so the boundary check rejects partial matches inside longer digit runs.
Can I audit a stylesheet's palette?
Yes. Paste the CSS and dedupe the results to get every unique color used, one per line.
Does it find rgb() colors?
No. Only hex codes are extracted. rgb() and named colors are left out of the results.
Is my text sent to a server?
No. The conversion runs entirely in your browser with JavaScript. Nothing you paste ever leaves your device.
Advertisement