Return a COLORREF value as a Python integer. The red, green, and blue arguments are integers from 0 to 255, specifying the intensity of each color component:
>>> from ctypes.wintypes import RGB >>> hex(RGB(255, 128, 0)) '0x80ff'
ctypes.wintypes/RGB
RGB