← Back to all guides
Technology · 4 min READ

How to Copy a HEX Color From Your Screen in Windows 11

How to Copy a HEX Color From Your Screen in Windows 11 guide illustration

Use PowerToys Color Picker to sample a screen pixel, copy its HEX value, avoid hover colors, and verify the swatch in your destination app.

Quick note

Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.

Quick answer

Enable Color Picker in Microsoft PowerToys and set the default color format to HEX. With the source visible, press Windows key + Shift + C, point to a solid patch of color, and click. Paste the copied value into your design app’s HEX field. Check whether that field supplies its own # prefix.

Choose a pixel that represents the color you mean

A logo can contain dozens of slightly different pixels even when it looks like a single shade of blue. A curved edge blends into its background, a shadow darkens the nearby pixels, and a compressed image may add speckles around lettering. Choose the interior of a large, uniformly colored area. If you have an official brand palette or original vector artwork, use its specified value for exact brand work.

Install Microsoft PowerToys from the Microsoft Store if needed and open its settings. Under Color Picker, check the activation shortcut, the default color format, and the activation behavior. For the workflow below, choose the behavior that starts by picking a color. A setup configured to open the editor first will show recent swatches instead of immediately changing the pointer.

Sample, paste, and check the format

  1. Arrange the source window so the intended color is clearly visible. Leave a plain note or the destination color field ready. Decide whether you want the ordinary or hovered state of an interactive control.
  2. Activate Color Picker. Hover over the color, then scroll the mouse wheel upward if you need to zoom in on a small region. Avoid the boundary between the colored object and its background.
  3. Click the desired pixel. With the usual left-click action, PowerToys copies the value and opens its editor. If your mouse actions have been customized, use the action labeled to pick the color. The editor also lets you copy another representation of that same swatch.
  4. Paste into a visible field. A conventional six-digit HEX value uses three pairs for red, green, and blue. For example, #1A7182 and 1A7182 express the same six digits, but an individual app may require or supply the prefix. Verify the preview before applying it.

Pick a button’s resting color without triggering hover

Position the pointer close to the button while it is still in its resting state. Activate the picker there, then zoom in with the wheel before moving onto the button. Microsoft documents that zoom freezes the sampled view. Select an interior pixel from that frozen view. To capture the hovered state as a separate swatch, deliberately hover first and label the second sample so the two values do not get mixed up.

Unexpected resultLikely explanation
Two clicks give slightly different valuesCheck for a gradient, antialiased edge, or compressed image. Sample a few center pixels.
The app rejects the pasted valueCheck the expected format, duplicated # sign, or an RGB field expecting three numbers.
The code changed after adjusting the swatchThe editor can fine-tune colors. Copy the original sample from history if you need the unedited one.
A screenshot does not match a brand specificationUse the original asset or style specification to establish the intended color.

Keep an identifiable record of the samples

Instead of pasting a row of anonymous color codes into a note, write down “header background,” “button at rest,” and “button when hovered” beside the appropriate values. If two samples look almost identical, put them into adjacent rectangles and check them against the source again. The picker history helps recover a recently copied value, but it cannot tell you which business asset or interaction state you intended it to represent.

Test a swatch where it will actually be used

Make a small rectangle in a scratch document, paste the value into its fill field, and place it beside the source at the same zoom. Sample the center of each area again. If the source is translucent over a background, the visible sampled result represents that composite. It will not tell you both the original overlay color and its opacity.

If a Windows accessibility filter is active, review the color filter setting before judging appearance by eye. For comparing several source images without opening a separate editor for each one, preview the files with PowerToys Peek. Microsoft illustrates zoom, clipboard formats, and swatch history in its Color Picker guide.

SHARE THIS GUIDE

Know someone who could use this?

DISCUSSION

Comments

Comments are reviewed before they become public.

No approved comments yet. Be the first to start the discussion.