Adobe Photoshop Help
Preparing Graphics for the Web
Working with hexadecimal values for color
You can view colors as hexadecimal values in the Info palette. In addition, you can copy
colors as hexadecimal values to the Clipboard and paste them into an HTML document.
Viewing hexadecimal values for colors in the Info palette
In Photoshop, hexadecimal values for colors are displayed in the Info palette when you
select Web Color Mode for one or both color readouts. In ImageReady, hexadecimal values
for colors are displayed automatically in the right side of the Info palette, next to RGB color
values. The Photoshop and ImageReady Info palettes also display other information,
depending on the tool being used.
To view hexadecimal color values in the Info palette:
1 Choose Window > Info or click the Info palette tab to view the palette.
2 (Photoshop) Choose Palette Options from the palette menu. Under First Color Readout
or Second Color Readout, choose Web Color from the Mode menu and click OK.
3 Position the pointer over the color you want to view hexadecimal values for.
Copying colors as hexadecimal values
You can copy colors as hexadecimal values from ﬁles in Photoshop or ImageReady, using
the context menu with the eyedropper tool, or using menu commands. In Photoshop, you
copy a color as a hexadecimal value while in the main work area (not the Save for Web
To copy a color as a hexadecimal value using the eyedropper tool:
1 Select the eyedropper tool in the toolbox.
2 Select a color to copy:
Right-click (Windows) or Control-click (Mac OS) a color in the image to select the color
and view the eyedropper tool context menu.
(ImageReady) Click the color in the image which you want to copy. The color you click
becomes the foreground color. With the eyedropper tool still over the image, right-click
(Windows) or Control-click (Mac OS) to view the eyedropper tool context menu.
3 Choose Copy Color as HTML (Photoshop) or Copy Foreground Color as HTML
(ImageReady) from the eyedropper tool context menu.
The selected color is copied to the Clipboard as a the HTML COLOR attribute with the
hexadecimal value (COLOR=#XXYYZZ). To paste the color into an HTML ﬁle, choose Edit >
Paste with the HTML ﬁle displayed in your HTML editing application.
To copy a color as a hexadecimal value using menu commands:
1 Select a color to copy.
2 Copy the color:
Choose Copy Color As HTML from the Color palette menu.
(ImageReady) Choose Edit > Copy Foreground Color as HTML.
The foreground color is copied to the Clipboard as the HTML COLOR attribute with the
hexadecimal value (COLOR=#XXYYZZ). To paste the color into an HTML ﬁle, open a desti-
nation application and choose Copy > Paste with the HTML ﬁle displayed.