I'm trying to calculate some RGB colors (0 - 255) for a 0 to 1 scale. Does anyone knows a online converter or it exists a math formula?
RGB colors
(0 - 255)
0
1
Lets say that I want to convert 125 RGB with (0 to 255 scale) to a 0 to 1 scale.
It's simply a case of dividing your RGB value, call it x by 255:
x
If x = 95 then your value is 95/255 = 0.373 (to 3 d.p.)
x = 95
95/255 = 0.373
1.4m articles
1.4m replys
5 comments
57.0k users