It appears that that 1 is a representation of 100% usage of the RBG respectively, probably just how they designed it to function. If you want to get the specific value you’ve set from there you could just multiply the output by 255.
I took your code and changed the value to 7, 255, 255 and got 0.027450980618596077, 1, 1
With that multiplying them all by 255 got the final value, the 7 did come out to 7.000000057742 but you can round that out