I am currently building an online APP which allows users to pick a color for text from a usual javascript color picker. I want to convert the returned value to CMYK and I know there is not one simple run-of-the-mill method to achieve this, given there are ICC profiles and all that.
I still want to achieve a relatively useful conversion the way "most" users know from Photoshop. The profiles I want to use are "AdobeRGB" for the RGB colorspace, and "Coated Fogra39" for the CMYK colorspace.
What I want to know is, if there is any method to convert single color values from one colorspace to the other, by utilizing these two ICC profiles (which I have downloaded). There are methods to convert entire images with ImageMagick, but I am dying trying to find a way to just calculate from one color value to the other. I am also inclined to use other means of achieving this goal if there are any ideas out there.
Thanks.