If I'm understanding you correctly, I'll use the variables C for Channel (R, G, or B), and P for Percentage...
P = C / 2.55
C = P * 2.55
All things graphic design!
If I'm understanding you correctly, I'll use the variables C for Channel (R, G, or B), and P for Percentage...
P = C / 2.55
C = P * 2.55
Yeah, assuming it's a linear percentage, this should be basic rule of three. So, divide by 255, then multiply by 100.
Dividing by 2.55 is just doing that in one step...
Divide the RGB values by 255? That will give you a number between 0 and 1, so just multiply that by 100 to get the percentage. Unless I'm misunderstanding what exactly you need to input into Photoshop.
Like, CMYK?