handle rgb range 0-1 when all components have decimal point and <=1

Let me know what you think. I will write a unit test if you agree with the fix.