Hex codes let you specify a precise color in Adobe InDesign, making it easier to match brand colors or reuse colors from a website, style guide, or another design app. You can enter a hex value when creating or editing a color swatch. Before you begin, have the six-digit color code ready; a leading # is optional in most InDesign versions.
What You’ll Need
- Adobe InDesign, with a document open or ready to create.
- A hex color code, such as #2F6B4F. Hex codes commonly use six digits or letters from 0–9 and A–F.
- Optional: the color’s source or intended output. A hex value describes an RGB color, so you may need to check how it converts for print.
Step-by-Step
- Open your document. Launch InDesign and open the document where you want to use the color. You can also create a new document; the color-entry steps are essentially the same.
- Open the Swatches panel. Choose Window > Color > Swatches. The panel lists the document’s saved colors and lets you add a reusable swatch. If the panel is already open, select it.
- Start a new color swatch. Open the Swatches panel menu and choose New Color Swatch. In the dialog, locate Color Type and set it to Process for a standard color built from the document’s color values. For most everyday designs, leave the type as Process.
- Choose a color mode that accepts hex. Set Color Mode to RGB. In versions that show an RGB color picker or a hex field, enter the code in the field marked Hex or #. If the field is not visible in the New Color Swatch dialog, use the RGB sliders or open the Color Picker, depending on your version. The interface varies between InDesign releases.
- Enter the code carefully. Type the six characters, such as
2F6B4F. Include the # only if the field accepts it; if InDesign rejects the entry, remove the # and try again. Do not include spaces. Confirm the preview shows the intended color. - Name and save the swatch. Give the color a useful name, such as
Brand Green, then click Add or OK, as shown in your version. The new swatch should appear in the Swatches panel. Naming it makes it easier to find and update later. - Apply the color to an object. Select the text, shape, or other object with the Selection or Type tool. In the Tools panel or Swatches panel, choose whether you are changing the Fill (the inside color) or Stroke (the outline), then click the new swatch. For text, select the characters first and target the text fill rather than the frame fill.
- Verify the result. Check the object on the page and confirm that the correct fill or stroke indicator is active. If the color is for print, check a proof or export a test PDF; a color that looks right on screen may change when converted to a print color space.
Common Mistakes
- Looking for the hex field in the wrong dialog. InDesign’s color controls differ by version. Some workflows expose a hex entry directly, while others require the Color Picker or RGB controls. Use RGB mode and look for a field explicitly labeled Hex or #; do not assume every color dialog has one.
- Entering an invalid value. A typical six-digit hex code contains only 0–9 and A–F. A missing character, extra space, or unsupported shorthand such as
#ABCcan prevent the intended color from being entered. Use the full six-character form when in doubt. - Changing the wrong attribute. Clicking a swatch while Stroke is targeted changes the outline, not the fill. For text, make sure the characters are selected and the text-color control is active.
- Expecting screen color to match print exactly. Hex codes represent RGB colors. Printing commonly uses CMYK or a specified spot-color system, and some bright RGB colors cannot be reproduced exactly with standard print inks.
- Making an unnamed duplicate swatch. Repeatedly creating similar colors can clutter the panel and make edits difficult. Name swatches clearly and update an existing swatch when it represents the same intended color.
Tips
- Copy the code from an approved brand guide or color source, then compare it character by character before applying it.
- Use a named swatch rather than entering a color separately for each object. If the swatch is edited later, objects using it can update together.
- Keep an RGB swatch when the design is intended for screen output. If it is intended for print, ask the printer for the required color space or profile and review a proof before approving the job.
- To reuse colors in other documents, save or export the swatch library where available, or use InDesign’s Swatches panel menu to load swatches from another InDesign document.
- For a precise check, reopen the swatch or color controls and inspect the RGB values. InDesign may display converted values after a color-mode change, so verify the mode before comparing them with the original hex code.
Troubleshooting
- I cannot find a hex field. Open the Color Picker from the relevant color control, or create a swatch and set its mode to RGB. Look for a labeled hex field. If your InDesign version has no direct hex entry in that interface, use a trusted hex-to-RGB converter and enter the resulting red, green, and blue values in InDesign’s RGB controls. Check that each channel is from 0 to 255.
- The code is rejected or the color looks wrong. Remove the #, delete spaces, and check that the code has exactly six valid characters. Confirm the field is the hex field, not a single RGB channel. Re-enter the value and compare the preview with a known reference.
- The swatch appears but nothing changes. Select the intended object or text, target Fill or Stroke as appropriate, and click the swatch again. If the object is on a locked layer, unlock the layer or select an editable object.
- The printed or exported color differs. Check the document’s color settings, the export PDF’s output intent, and the printer’s requested profile. RGB-to-CMYK conversion can change appearance; use a printer-approved workflow and request a proof for color-critical work.
Frequently Asked Questions
Can I paste a hex code directly into InDesign?
Yes, if the color-entry dialog in your version has a Hex or # field. Set the color mode to RGB first. If no hex field is available, convert the code to RGB values and enter those values instead.
Do I include the # symbol?
It depends on the field. Some accept a leading # and others expect only the six characters. If the entry is not accepted, remove the symbol.
Can I use a hex code for text color?
Yes. Create or select the RGB swatch, highlight the text, target the text fill, and apply the swatch. Selecting the text frame alone may change the frame instead.
Will a hex color print exactly as it appears on screen?
Not necessarily. Hex values specify RGB color, while print workflows may convert the color to CMYK or use spot inks. Check the printer’s requirements and review a proof for important colors.
Can I reuse the hex color in another document?
Yes. Save it as a named swatch, then load or copy the swatch into the other document using the Swatches panel options. Confirm the color mode is appropriate for the new document.