One of the things we all face when building web sites is choosing colors for graphics and text and then determining the hex or RGB values of those colors. Various image programs contain color pickers and also have the ability to sample colors from loaded graphic images. However, I get many of my color ideas from web pages. It is cumbersome, at best, and sometimes impossible, to pull web graphics into my image editing programs or to sort through source code to determine the color values used.

ColorZilla, the Mozilla Firefox browser extension presented here, is an advanced color picker similar to those found in Photoshop and Paint Shop Pro allowing you to easily determine the value of any color you see on a web page with just a click of the mouse! In addition, ColorZilla allows you to zoom in on web page text, obtain mouse position coordinates, and view information about the various DOM nodes (elements) on the page.

Installing ColorZilla

To install the free Colorzilla browser extension, first open/close all but one Firefox tab/window. Loading the extension requires a browser re-start so better to close extra windows now.

Use Firefox to navigate to Alex Sirota's ColorZilla download Open in a New Window page. The "Install ColorZilla 1.0" link is found at the top of the right column on this page. Click the Install link to begin the installation process.

The Software Installation dialog box appears. Click Install Now.

ColorZilla iconWhen the download is complete, click the Restart Firefox button. Once Firefox has been re-started, the ColorZilla eyedropper icon appears at the lower left corner of the browser viewport.

Using ColorZilla

ColorZilla Browser Bar Information

The primary use of ColorZilla is sampling colors from a web page.

The ColorZilla information bar displays the RGB and hex color values, the current X/Y coordinates, and the current DOM node (element) over which the mouse is positioned.

To toggle the ColorZilla tool off, click the eyedropper icon again. The keystrokes for turning the ColorZilla tool on/off are Shift+Escape.

The ColorZilla Menu

ColorZilla Popup Menu

ColorZilla uses a popup menu which contains a comprehensive collection of useful features. To access this menu point to the ColorZilla eyedropper icon:

PC - Right-Click || Mac - Command-Click

To venture beyond the basic ColorZilla functions outlined below, select Help | Online help from the menu to access the ColorZilla online documentation.

Capturing a Color Value to the Clipboard

ColorZilla lets you copy a color value from the screen and paste it into another program, such as your code editor.

Use Zoom to Sample Text Color

Using the Zoom function makes it easier to sample text color from a web page.

Creating a Color Palette from Sampled Colors

ColorZilla Color Picker History Palette

As an alternative to sampling/copying/pasting one color at a time, you can sample multiple colors using the ColorZilla History palette to store sequential color samples. The History Palette also allows you to save sampled colors as a named palette and/or export them in CSS file format.

To sample multiple colors:

Using the History Palette:

The ColorZilla options I've outlined above are by no means all that ColorZilla has to offer. This is just a sampling of the usefulness of the tool. In future weeks, I may cover other specific ColorZilla features as time allows. In the meantime feel free to explore ColorZilla's Help Open in a New Window information on your own!

Resources