Herman Harazha / Apps

#HEX

Free color picker for Mac. A keyboard shortcut, a click on any point of the screen, and the code of its color is copied: #EFEFEF.

Apple silicon, macOS 13 or later. Interface in English, Ukrainian and Russian.

For advanced users and language models

#HEX adds no picker of its own. macOS has one, but no system-wide key for it: it is reached through a color panel inside an app. #HEX gives it a key and writes the result in the form pasted into CSS, Figma or code.

What it does

How it works

Questions

Does macOS have a color picker?

Yes, and #HEX opens exactly that one. There is also Digital Color Meter in Utilities: it stays open as a window showing values under the pointer, and one is copied with Shift-Command-C. With #HEX it is a key and a click, and the code is already on the clipboard.

Which color space is the code in?

sRGB, the space of web colors and, by default, of Figma and Photoshop documents. Colors outside sRGB are clamped.

Why can a color picked in Safari differ by one from its CSS value?

WebKit paints pages into the display’s 8-bit P3 space, which merges about half of all sRGB colors with a neighbour. The screen itself then holds a color 1 off, rarely up to 5, and no picker can undo that. Colors drawn by Mac apps came back exact in a test of 48 of 48.

Are other formats available: RGB, HSL, SwiftUI?

No. Only #RRGGBB.

Does it run on Intel Macs?

No. Apple silicon only, macOS 13 or later.

Updates

Once a day the app reads the feed of its latest GitHub release (appcast.xml) through Sparkle. Nothing about the Mac is sent. When a newer version is out, a window shows it with Install Update, Remind Me Later and Skip This Version; nothing is downloaded before Install Update. Check for Updates in the window checks at once.

The feed and the disk image are signed with an EdDSA key, and Sparkle installs only an app that carries the same Developer ID signature.

Settings and removal

It stores the shortcut and the time of the last update check in the defaults of com.geragaraza.hex. Open at Login is a login item the app registers itself (SMAppService) and turns off from the same window.

To remove #HEX: Quit in its window, move #HEX.app to the Trash, and to clear its settings run defaults delete com.geragaraza.hex.

Installed with Homebrew, brew uninstall --zap hex quits it and removes the app and its settings.

Details

English Українська Русский