I have three mdframed environments in my document.




Using the xcolor package. I am wondering how (if possible) I can recover the CMKY codes for the colours from this information?


You can use the \extractcolorspecs macro from xcolor package and extract its model first to \modelcmd and the spec to \colorcmd and then use \convertcolorspecs to transform it to another specification, say cmyk.









Direct conversion:





cmyk: \cmykbrown

hsb: \hsbbrown

RGB: \RGBbrown


enter image description here

  • @AngusTheMan: Glad I could help. Happy Texing
    – user31729
    Dec 17 '15 at 18:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.