ok, how do i calculate the cmyk version of a color if i have the rgb or the hex version of the color.

thanx in advance