Overview
Sample any pixel from an uploaded screenshot and copy the color as HEX, RGB, Compose, Flutter, SwiftUI, or Android XML. An automatic palette surfaces the top eight colors, and a Chromium eyedropper reads any on-screen color.
How It Works
Upload a screenshot through the file input or draw the built-in 'Load Sample UI' mockup. Click the canvas to sample that pixel, or use the system eyedropper on Chromium browsers, then copy any of the six export formats.
Step-by-Step Usage Guide
- Open the file input and upload a screenshot, or press 'Load Sample UI' to draw a mockup canvas.
- Click anywhere on the canvas to sample that exact pixel as the active color.
- On Chromium browsers, press the system eyedropper button to pick any color visible on screen.
- Click a palette swatch or copy the color in HEX, RGB, Compose, Flutter, SwiftUI, or Android XML form.
Technical Specifications & Standards
Canvas sampling reads a 1×1 getImageData at the clicked point, with coordinates mapped by displayed size. This mapping follows CSS scale only and is not devicePixelRatio-aware, so results can shift on scaled displays. The palette buckets each channel to the nearest 20 and counts frequency over a sparse sample of about 2000 pixels, listing the top eight; clicking a swatch selects it. Flutter and Compose exports are identical by design, both 0xFFRRGGBB.
Targeted Use Cases
- Extracting a theme color: upload an app screenshot, click a button surface, and copy the Jetpack Compose Color(0xFF...) string straight into your theme file.
- Building colors.xml: copy the Android XML hex resource line for a sampled brand color and paste it into a values resource file.
- Matching a web design: use the Chromium eyedropper to grab a color from another window and compare it against the palette of your screenshot.
- Porting UI to iOS: sample a color once and copy the SwiftUI Color(red:green:blue:) initializer without converting channels by hand.
Notes & Gotchas
- There is no magnifying loupe. Zoom your screenshot before uploading so the pixel you click is the pixel you want.
- High-resolution images are sampled sparsely, so rare colors can be missed by the top-eight palette. Sample such colors by clicking the canvas directly.
- The palette is frequency-based, not perceptual; two visually similar shades can occupy several of the eight slots.
- Uploads only: there is no drag-and-drop or paste. Expect slight offset when a scaled display is not devicePixelRatio-aware.
Frequently Asked Questions
Does the eyedropper work in Firefox?
No. The EyeDropper API is Chromium-only, so the button works on Chromium browsers; canvas clicking works everywhere.
Why are the Flutter and Compose exports identical?
Both formats are 0xFFRRGGBB by design, so the tool intentionally emits the same string for each.
Why is a color I see missing from the palette?
The palette counts frequency over a sparse sample of about 2000 pixels, so rare colors can be absent. Click the canvas to sample them directly.
How is the clicked pixel located?
The tool reads a 1×1 getImageData at the click point, mapping coordinates by displayed size; the mapping is CSS-scale only and not devicePixelRatio-aware.
Related tools
- Advanced Color Picker - Pick colors with an interactive wheel and sliders. Copy as HEX, RGB, HSL, or CSS variable.
- Color Palette Generator - Generate WCAG-compliant palettes with complementary, analogous, triadic harmonies. Export CSS/Tailwind.
- Screenshot & Image Text Extractor (OCR) - Detect text in screenshots on-device via the browser's Shape Detection API (Chromium). Editable output, copy-ready — no upload, no cloud OCR.
- Emoji Picker & Search - Search 100+ emojis by name, click to copy instantly, and revisit your recently used ones.
- Random Picker Wheel - Spin an animated decision wheel with up to 16 options - giveaways, team picks, and dinner debates settled fairly.
- Tailwind 11-Shade Palette Studio - Input any color and generate the full 50–950 Tailwind color scale with copyable tailwind.config.js snippet.