I was playing around with rgb to hex conversion. But when I took the rgb values from a colour in blender, multiplied them with 255 and then converted them to a hex code, it gave me a more saturated colour after copying the hex code back into blender. After a bit of playing around I found out that before multiplying a number with 255 you should first take the square root of that number. This confuses me because I can’t find any mention of this anywhere. And I don’t know if, when for instance copying the metal base colour values from the pbr encyclopedia I should square the numbers before copying them into blender or not.
It would be great if someone could shine some light on this situation.