How to transform Tahoe Digital Color Meter rgb floats to hex format?
Author: mcandreCreated Mar 15, 2026Updated Mar 15, 2026
Hi,
I recently updated from macOS Sequoia to macOS Tahoe, where Digital Color Meter uses this incredibly awkward (s)RGB float notation.
Example:
(0.675, 0.122, 0.114)For scarlet red.
Everything under the sun uses hex format, but Color Meter uses floats.
Struggling to find the right notation to import colors in Apple's format into pastel.
I tried pastel's rgb and rgb-float syntaxes, though those appear to assume a traditional 1 factor, where Apple uses a 255 factor.
Can we please get an apple or digital-color-meter or similar, new format to manage these values?
As a workaround, I found a view setting in Digital Color Meter to show hex codes. But would be fantastic to have this capability built into pastel.
Source: sharkdp/pastel