Helper function to detect the color type/model (HEX, RGB, HSL).