Skip to content
UniKit

Screen color picker

Sample any pixel on screen with the browser EyeDropper API, read HEX / RGB / HSL and keep the last 12 picks; when the API is unavailable it falls back to picking colours from an uploaded screenshot.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Pick a colour straight from the screen

The EyeDropper API samples any pixel on screen, including other windows, provided the browser supports it and you grant permission.

Browser support

This browser does not support the EyeDropper API (Chrome / Edge 111+ do; Firefox and Safari have not implemented it), so the fallback path is active: upload a screenshot and click it to sample. The pixel values are identical to direct screen sampling.

Screenshot fallback

Capture the area you care about with your system screenshot tool, then drop the image here; click anywhere on the canvas to pick that pixel.

Drop a screenshot here

The sample is a 4×4 quadrant image drawn on Canvas by this page, used to demo the fallback path.

Move the pointer over the screenshot to inspect pixels; click to add the colour to the history.

Move the pointer over the screenshot.

Enter a colour manually

Accepts #RGB, #RRGGBB and rgb(r, g, b) — handy for converting or typing a value you already know.

Current colour

HEX, RGB and HSL are all ready to copy.

Pick a colour, click the screenshot, or type a value to see the result.

History

The most recent colours, up to 12; click an entry to select it again, or remove it individually.

Picked: 0

No colours picked yet.

What this tool does

  • Sample any pixel on screen, including windows outside the browser, desktop icons and video frames — you get the final composited pixel.
  • Turn an on-screen colour into HEX / RGB / HSL instantly and paste it into a stylesheet or a design hand-off.
  • Collect a run of colours and keep the last 12 picks to compare a palette or record several values from a screenshot.
  • When the browser lacks EyeDropper, the screenshot fallback does the same job with no extension installed.

Example

Input

rgb(51, 102, 153)

Output

HEX: #336699
RGB: rgb(51, 102, 153)
HSL: hsl(210, 50%, 40%)

HSL follows the published CSS Color 4 formulas: hue is rounded to whole degrees, saturation and lightness to whole percentages.

Frequently asked questions

What is EyeDropper and which browsers support it?

EyeDropper is a browser API (`new EyeDropper().open()`) that lets a page sample any pixel on screen, including other windows. Chrome 95+ and Edge 95+ ship it (with `signal` support for cancellation since 111); Firefox and Safari have not implemented it. This tool detects support on load, switches to the screenshot fallback automatically and says so on the page.

How do I pick colours when it is unsupported?

Use the fallback: capture the area with your system screenshot tool (Shift+Cmd+4 on macOS, Win+Shift+S on Windows), drop the image into the tool or pick the file, then click anywhere on the canvas. Values come from the Canvas getImageData call and are the same sRGB values you would get from direct sampling — the only extra step is taking the screenshot yourself.

Are the picked colours uploaded?

No. EyeDropper results, uploaded screenshots and manually typed colours are all handled in local memory with no network request. History lives only in the current page and is cleared on refresh; nothing is written to localStorage.

How is HSL computed?

From sRGB using the published CSS Color 4 definitions: lightness is (max+min)/2, saturation uses one of two formulas depending on whether lightness exceeds 0.5, and hue is derived from whichever channel is largest. Values are displayed with whole degrees and whole percentages, so converting hsl(...) back to RGB can differ by ±1.

What are the history limits?

At most 12 colours, de-duplicated by HEX: picking the same colour again just moves it to the front. You can click an entry to select it, remove it individually, or clear the whole list.

Keywords:screen color pickerEyeDropper API

Related tools