convert string hex to int r,g,b python code example Example: string hex to decimal python x = int("deadbeef", 16)