decorative banner

Copying colors as hexadecimal values


    You can copy colors as hexadecimal values from files 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 dialog box).

To copy a color as a hexadecimal value using the eyedropper tool:

  1. Select the eyedropper tool 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.
  4. 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 file, choose Edit > Paste with the HTML file 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 file, open a destination application and choose Copy > Paste with the HTML file displayed.

To copy a color as a hexadecimal value by dragging (ImageReady):

    Drag the Foreground Color from the toolbox or a selected color from the Color Table palette or the Swatches palette into the HTML file in the destination application.

    Note: This feature is not supported by all text and HTML editing applications.