30.09.2018, 16:21
This is the formula from the sRGB specification, the formula that simply raises the value to the power of 2.2 is a simplification of the other one, but it's still very close. I found this out from here when looking for a formula to get the gamma of a colour.