Capture RGB values ??in textfields

hello guys,

I wonder if anyone can help me with a new project, I explain, I need to capture the RGB values ??in textfields where the mouse is positioned, any help will be appreciated.

(Need only for Mac platform )

Thank you.