RGB to hex and hex to RGB April 25, 2022 by IT Nursery How to convert colors in RGB format to hex format and vice versa? For example, convert '#0080C0' to (0, 128, 192). 52 s 52