Convert RGBA color to RGB
问题 How to convert a RGBA color tuple, example (96, 96, 96, 202), to corresponding RGB color tuple? Edit: What I want is to get a RGB value which is most similar to the RGBA tuple visually on white background. 回答1: I've upvoted Johannes' answer because he's right about that. * A few comments have been raised that my original answer was not correct. It worked if alpha values were inverted from the normal. By definition, however, this won't work in most cases. I've therefore updated the formula