I came across this app yesterday. It's free and super handy.
Couleurs is a simple app for grabbing and tweaking the colors you see on your screen.
Couleurs takes Apple's color panel (complete with "magnifying glass"), and combines it with an easy way to copy common formats of color values to the clipboard (including CSS formats like #rrggbb and even UIColor values in Swift).
[via Laurent Baumann]