Adding a hex color to an Illustrator document is a simple process that can be done in a few steps. First, open the Colors palette and select the hex color you want to use. Next, drag the color into the text field of the Hex Color dialog box. Finally, click on OK to add the hex color to your document.