Good read on the topic is Charles Poynton site and books, e.g. https://www.poynton.ca/pdf/GammaFAQ.pdf