If you want to get hex colours using the Digital Colour Meter in MacOS:
terminalApplications > Utilities > Digital Colour Meter
On the menu:
terminalView > Display Values > as Hexadecimal
To copy the hex color in your clipboard press ⌘ + ⇧ + C
.
Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.