Hex Extractor

Match, preview, and copy hex color values in text.


Example Result


Actions Icon

This shortcut uses a simple Regular Expression - /#(?:[0-9a-fA-F]{3}){1,2}/g - to match any hex color values in the input text. As configured by default, said text can come from either the share sheet or the system clipboard.

Using Actions' Create Color Image action, it then generates small, square, solid color previews of each color, over which is overlayed the hex value.

A Combine Text action gathers the matches into a simple plain text list, which is copied to the system clipboard.

The preview images are gathered into a grid and rendered in a single image using a Combine Images action, the result of which is saved by default to one's Recents iCloud Photos folder and displayed at the end of the shortcut run using a Show Result action.


Latest Release Notes

1.0 - Sept. 21, 2022, 5:53 p.m.

Initial release.