Color picker
Pick any color on screen and copy it as hex, RGB, Display P3, HSL or ready-to-paste code.
Press ⌃⇧P, or click Color in the popover. The screen freezes and a loupe follows the pointer.
- Press Tab (or C) to choose the format.
- Click a pixel. The color is copied in that format.
Esc cancels.
Formats#
Tab cycles through:
| Format | Example |
|---|---|
| Hex | #4FD8EB |
| RGB | rgb(79, 216, 235) |
| Display P3 | color(display-p3 0.41 0.83 0.91) |
| HSL | hsl(187 80% 62%) |
| SwiftUI | Color(red: 0.31, green: 0.847, blue: 0.922) |
| NSColor | NSColor(srgbRed: …, green: …, blue: …, alpha: 1) |
| UIColor | UIColor(red: …, green: …, blue: …, alpha: 1) |
| CSS variable | :root { --name: #4FD8EB; } |
The examples are approximate. The color is read from the captured pixels in the display’s own color space, so a color on a wide-gamut display keeps its Display P3 value. When a color is outside sRGB, the SwiftUI, NSColor, UIColor and CSS formats use their Display P3 forms.
Next#
Something missing or unclear? Write to [email protected].