You can copy color code from any pixel displayed in Inspect just by clicking on it.
Choose the Color Picker tool
Click on the design canvas
The color code will be automatically copied directly to your clipboard
👉🏼 TIP: Hit the “I” key as a shortcut to choose the Color Picker.
Export color code from color palette
The colors you pick are stored in a color palette in the top right corner of your Design view. You can easily copy the previously picked colors to your clipboard by just clicking on the palette.

Create variables from color codes
Hover over the color in your color palette and choose to Add as variable.
Change color code format
You can switch to different format in the Template settings.