Jump to content

This topic is 7054 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

How can I convert RGB to CMYK? I have a table with PMS and RGB numbers. Now I need to put the CMYK info in it.

Does anyone know an easy way of doing this?

J

Posted

There is a formula for doing so. First you have to convert RGB to CMY. Then you convert CMY to CMYK.

RGB -> CMY

//RGB values = 0 ÷ 255

//CMY values = 0 ÷ 1

C = 1 - ( R / 255 )

M = 1 - ( G / 255 )

Y = 1 - ( B / 255 )

CMY -> CMYK

//Where CMYK and CMY values = 0 ÷ 1

var_K = 1

if ( C < var_K ) var_K = C

if ( M < var_K ) var_K = M

if ( Y < var_K ) var_K = Y

C = ( C - var_K ) / ( 1 - var_K )

M = ( M - var_K ) / ( 1 - var_K )

Y = ( Y - var_K ) / ( 1 - var_K )

K = var_K

I got this from here: Do a google search on "Color Conversion Formulas"

http://www.easyrgb.com/math.php?MATH=M13#text13

Hope this helps

This topic is 7054 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.