Converting RGB values to percentages

I ran across a table of settings for Photoshop's channel mixer for simulating various analog film stocks. However, the RGB color values are given as numbers in the 0-255 range, and channel mixer uses percentages. Any idea how to convert the RGB values to plug them into channel mixer?

4 points · 4 comments · view on lemmy.world

4 Comments

over_clox@lemmy.world · 3 pts · 1y (1 reply)

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

Ephera@lemmy.ml · 1 pts · 1y

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...

Nawor3565@lemmy.blahaj.zone · 1 pts · 1y

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.

owatnext@lemmy.world · 0 pts · 1y

Like, CMYK?