Colour of Pixel Under Mouse Pointer

I can see in KM prefs that this sets the pixel colour to SystemClipboard, but when I hit cmd+v to paste the value in an app, nothing happens. Am I misunderstanding how the clipboard works?

You are setting a Keyboard Maestro Variable, named “SystemClipboard”.

You need to use the Set Clipboard to Text action or the Insert Text by Pasting action.

1 Like

Thankyou!!!

1 Like

Just chiming in, this helped me in 2025, what a great solution to an issue I was having! Thanks from the future!

This looks great. How would the calculation work to return RGB values instead of HEX values? So, 255,255,255 for white?

The PIXEL function returns the comment as a fraction from 0-1. So to get 0-255 you would multiple by 255 and get the integer value. Use Dec1 instead of Hex2 in the example I gave (use the Dec token).

2 Likes

Perfect. Thank you.

3 Likes