Ok I have 2 question

(first): How can I get the color of the pixel right under the mouse cursor?

(second): how can I change an hexadecimal color value into an RGB color value and how can change an RGB color value to an Hexadecimal color value?

Thank to anyone that will help me!