Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Eyedropper

This article needs an editorial review. How you can help.

The Eyedropper is new in Firefox 31.

The Eyedropper tool enables you to select colors in the current page. It works like a magnifying glass over the page, enabling you to select with pixel precision. Underneath the magnifying glass it shows the color value for the current pixel using whichever scheme you've selected in Settings > Inspector > Default color unit:

You can use it in one of two ways:

  • to select a color from the page and copy it to the clipboard
  • to change a color value in the Inspector's Rules view to a color you've selected from the page

Copying a color to the clipboard

Open the Eyedropper in one of these two ways:

  • select "Eyedropper" under the "Web Developer" menu
  • click the eyedropper button in the Toolbox toolbar (but note that this button is not present by default: you need to add by checking "Grab a color from the page" in the Developer Tools Settings)

As you move the mouse around the page you'll see the current color value in the Eyedropper change. Clicking copies the current color value to the clipboard.

Changing a color value in the Rules view

Color values appearing in the Inspector's Rules view have color samples next to them: clicking the sample shows a color picker popup. From Firefox 31, the popup contains an eyedropper icon: click this icon to activate the Eyedropper.

Now, when you click the Eyedropper, the color in the Rules view is set to the color you selected.

Keyboard shortcuts

Command Windows OS X Linux
Select the current color Enter Return Enter
Dismiss the Eyedropper Escape Escape Escape
Move by 1 pixel Arrow keys Arrow keys Arrow keys
Move by 10 pixels Shift + arrow keys Shift + arrow keys Shift + arrow keys

Document Tags and Contributors

 Contributors to this page: Naesten, trevorh, wbamberg, Norville
 Last updated by: Naesten,