There are a few ways to enter hex code in Photoshop. The easiest way is to use the keyboard shortcut Cmd+H. To enter a hex code using this shortcut, type in the following code: #C7D7B7