If you want to get hex colours using the Digital Colour Meter in MacOS:
Applications > Utilities > Digital Colour Meter
On the menu:
View > 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.