A WPF control library of commonly used UI controls, styles and themes for building Windows desktop apps in C#.
iammukeshm/hexgrab
A tiny Windows color picker: press Win+Shift+H, click any on-screen pixel, and its HEX code is copied to the clipboard.
Open-source alternative to:PowerToys Color Picker
- Stars
- 5
- Forks
- 1
- Open issues
- 0
- Last commit
- 26 days ago
What is it?
hexgrab is a small color picker for Windows, written in C# on .NET 10 and WPF with no NuGet dependencies. Pressing Win+Shift+H starts picking: a label follows the cursor and shows the color under it, and a click or Enter copies the HEX value to the clipboard, while Esc or a right click cancels.
The project was built as a learning exercise. The author used REA (Reverse Engineer Anything) to study the shipped binaries of Microsoft PowerToys' Color Picker, then wrote an independent minimal implementation and checked the findings against PowerToys' public source. The codebase is under 750 lines including comments, and the repository includes an end-to-end PowerShell test that drives the real hotkey, clicks and keys.
The app uses low-level mouse and keyboard hooks that are installed only while picking, and it polls the screen at the display refresh rate so colors update even when the cursor is still. It currently supports HEX output only and has been tested on a single monitor at 125% scale.
Key features
- 01Global hotkey Win+Shift+H starts picking from anywhere.
- 02Live color preview follows the cursor and flips near monitor edges.
- 03Copies the HEX value to the clipboard and retries if the clipboard is busy.
- 04Per-Monitor V2 DPI awareness for physical-pixel accuracy.
- 05Ships as a self-contained exe or a small build that needs the .NET 10 Desktop Runtime.
Use cases
- Grabbing a brand or UI color from any on-screen element.
- Checking the exact HEX value of a pixel in a video or animation frame.
- Quickly sampling colors while designing or reviewing interfaces on Windows.
Quick start
- 1
Build and run from source (needs .NET 10 SDK on Windows)
dotnet run --project src/Hexgrab/Hexgrab.csproj - 2
Download an exe from the latest release page
Things to know
- Windows 10 or 11 only, x64.
- The release exe is not code-signed, so Windows SmartScreen will warn on first run.
- Multi-monitor setups with mixed scale factors are not yet tested on real hardware.
- HEX output only; no RGB/HSL formats, history or settings.
In collections
Topics
FAQ
- What is hexgrab?
- A tiny Windows color picker: press Win+Shift+H, click any on-screen pixel, and its HEX code is copied to the clipboard. hexgrab is a small color picker for Windows, written in C# on .NET 10 and WPF with no NuGet dependencies. Pressing Win+Shift+H starts picking: a label follows the cursor and shows the color under it, and a click or Enter copies the HEX value to the clipboard, while Esc or a right click cancels.
- Is hexgrab free to use? What license does it have?
- hexgrab is open source under the MIT license. Check the license terms before using it in commercial products.
- Is hexgrab still maintained?
- Actively maintained. The last commit to hexgrab was on Oct 12, 2026.
- What can I use hexgrab for?
- Grabbing a brand or UI color from any on-screen element. Checking the exact HEX value of a pixel in a video or animation frame. Quickly sampling colors while designing or reviewing interfaces on Windows.
- How do I install hexgrab?
- Build and run from source (needs .NET 10 SDK on Windows): dotnet run --project src/Hexgrab/Hexgrab.csproj Download an exe from the latest release page
- Where can I get hexgrab?
- The source code and installation instructions are on GitHub: https://github.com/iammukeshm/hexgrab
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Free, open-source Windows optimization tool with 42 tweaks, a settings panel, and built-in tools for startup, scheduled tasks, and cleanup.
Windows OCR utility that captures text from screen regions, images, PDFs and files, runs locally, and copies or routes the result.
A ready-to-go Windows translation and OCR tool built with WPF, supporting a plugin system for translation and recognition services.
Community launcher that plays a custom startup animation for the Codex desktop app, then hands off to the live app window on Windows and macOS.
A modern, open-source file manager for Windows with multitasking, file tags, and deep system integration.