Extract Hex Colors

Pull #RGB and #RRGGBB codes from text.

Finds CSS hex colors with 3, 4, 6, or 8 hex digits. Not named colors, not rgb(). Duplicates removed.

What Extract Hex Colors does

Finds CSS hex colors with 3, 4, 6, or 8 hex digits. Not named colors, not rgb(). Duplicates removed.

Extract Hex Colors sits in the Text group on purpose. It is not Extract URLs (Pull unique http(s) URLs; strip punct, sort.) and not Color Picker (Hex, RGB, and HSL from a color.). Choose this page when you need Pull #RGB and #RRGGBB codes from text. If you stretch Extract Hex Colors into a neighbor’s job, the result will look wrong even though the site chrome looks the same.

How to use Extract Hex Colors

  1. Keep this tab on Extract Hex Colors (/extract-hex-colors). Pasting into the wrong Text tool (for example Extract URLs) changes the job.
  2. Paste or type the input Extract Hex Colors expects. Path hint: extract hex colors. Pull #RGB and #RRGGBB codes from text.
  3. Apply the Extract Hex Colors action only. Color Picker is a different transform (Hex, RGB, and HSL from a color.). Finds CSS hex colors with 3, 4, 6, or 8 hex digits. Not named colors, not rgb(). Duplicates removed.
  4. Copy the output of Extract Hex Colors if you need it elsewhere. Size/complexity still follows: Hash plus 3, 4, 6, or 8 hex digits. Word boundary after the code. Not rgb() or hsl().
  5. If the text job is actually Pull unique http(s) URLs; strip punct, sort., leave Extract Hex Colors and open Extract URLs.

When not to use Extract Hex Colors

Skip Extract Hex Colors when a neighbor tool matches better — start with Extract URLs or Color Picker — or when the description already warns the job will fail. In the tool’s own words: Finds CSS hex colors with 3, 4, 6, or 8 hex digits. Not named colors, not rgb(). Duplicates removed.

Questions about Extract Hex Colors

What does Extract Hex Colors do that other Text pages on this site do not?
Finds CSS hex colors with 3, 4, 6, or 8 hex digits. Not named colors, not rgb(). Duplicates removed. Short version: Pull #RGB and #RRGGBB codes from text.
Does Extract Hex Colors upload my file or text to Tool-You servers?
No. Extract Hex Colors runs in this browser tab. Files stay on the device. Limit note: Hash plus 3, 4, 6, or 8 hex digits. Word boundary after the code. Not rgb() or hsl().
Should I use Extract URLs instead of Extract Hex Colors?
Use Extract Hex Colors when you need Pull #RGB and #RRGGBB codes from text. Use Extract URLs when you need Pull unique http(s) URLs; strip punct, sort. They share a category (Text) but not the same job.
What are the limits of Extract Hex Colors?
Hash plus 3, 4, 6, or 8 hex digits. Word boundary after the code. Not rgb() or hsl(). Also: Finds CSS hex colors with 3, 4, 6, or 8 hex digits. Not named colors, not rgb(). Duplicates removed.