Tool (or formula) that to convert RGB color to xcolor code (example of the type red!30!green)












2















Often I use xcolor package also to create several and customize kinds of colors.



Many times I use the combination of the page 33 because it's understandable to me:



enter image description here



But to find the exact shade of color, I do a lot of tests, which take even a few hours. Sometimes I use the colors of dvipsnames, via svgnames, via x11names.



I ask if somebody knows an online tool (or a specific formula) that convert me directly an RGB color with a code like, for example, blue!50!yellow. This question is closely connected to another one that you can find on this link:



https://graphicdesign.stackexchange.com/questions/120490/as-to-known-the-colors-used-in-an-image



I don't want to define a long list of definecolor{name}{model}{color-spec} (for example definecolor{ultramarine}{RGB}{0,32,96}) because I forget all the custom colors that I have customized.










share|improve this question




















  • 4





    Why don't you use the RGB color value and just define the color that way (give it a name)? Maybe I just don't understand your question…

    – TeXnician
    Mar 29 at 20:47






  • 4





    The problem with colors is that they depends on the medium they are used. With a monitor you use usualy rgb colors, if the pdf should be printed, you should better use cmyk, because printer use them. Now the problem is that rgb is not equal cmyk, more some colors do not exist in the other color modell. Back to the printer: it depends on the used paper how the cmyk is seen after beeing printed. Better printer have mechanism with color profiles to make you see the same color on different papers. That you have to discuss with the printing house for your book. Using colors is not simple!

    – Kurt
    Mar 29 at 21:19








  • 3





    Well, there will be rounding errors converting rgb to cmyk and you do not know if the resulting color is the color you want. Only one thing is sure: the color on monitor is not the color on print, or do you have a special workstation, build to show the color on monitor to be printed (very expensiv!)? ;-) The color specialist can have it ...

    – Kurt
    Mar 29 at 21:29






  • 2





    @Sebastiano What image? Just compile the code posted with pdflatex and you will see that image in a PDF.! So you can add a bestcolors environment in your working document to test any (already defined) color to see how exactly can be defined in any format and how exactly look like in a box (much better than simply look at the colored text or thin lines of the document, where it can be harder appreciate the true tone). What else?

    – Fran
    Mar 30 at 6:42






  • 2





    @Sebastiano I guess that this would be a bit complex. Suppose that you a a RGB color of f 0.5 0.5 0.5 what should LaTeX automatically produce? black!50!white? or why not white!50!black? or simply black!50 ? or simply gray? ... or why not mycolor?

    – Fran
    Mar 30 at 20:20


















2















Often I use xcolor package also to create several and customize kinds of colors.



Many times I use the combination of the page 33 because it's understandable to me:



enter image description here



But to find the exact shade of color, I do a lot of tests, which take even a few hours. Sometimes I use the colors of dvipsnames, via svgnames, via x11names.



I ask if somebody knows an online tool (or a specific formula) that convert me directly an RGB color with a code like, for example, blue!50!yellow. This question is closely connected to another one that you can find on this link:



https://graphicdesign.stackexchange.com/questions/120490/as-to-known-the-colors-used-in-an-image



I don't want to define a long list of definecolor{name}{model}{color-spec} (for example definecolor{ultramarine}{RGB}{0,32,96}) because I forget all the custom colors that I have customized.










share|improve this question




















  • 4





    Why don't you use the RGB color value and just define the color that way (give it a name)? Maybe I just don't understand your question…

    – TeXnician
    Mar 29 at 20:47






  • 4





    The problem with colors is that they depends on the medium they are used. With a monitor you use usualy rgb colors, if the pdf should be printed, you should better use cmyk, because printer use them. Now the problem is that rgb is not equal cmyk, more some colors do not exist in the other color modell. Back to the printer: it depends on the used paper how the cmyk is seen after beeing printed. Better printer have mechanism with color profiles to make you see the same color on different papers. That you have to discuss with the printing house for your book. Using colors is not simple!

    – Kurt
    Mar 29 at 21:19








  • 3





    Well, there will be rounding errors converting rgb to cmyk and you do not know if the resulting color is the color you want. Only one thing is sure: the color on monitor is not the color on print, or do you have a special workstation, build to show the color on monitor to be printed (very expensiv!)? ;-) The color specialist can have it ...

    – Kurt
    Mar 29 at 21:29






  • 2





    @Sebastiano What image? Just compile the code posted with pdflatex and you will see that image in a PDF.! So you can add a bestcolors environment in your working document to test any (already defined) color to see how exactly can be defined in any format and how exactly look like in a box (much better than simply look at the colored text or thin lines of the document, where it can be harder appreciate the true tone). What else?

    – Fran
    Mar 30 at 6:42






  • 2





    @Sebastiano I guess that this would be a bit complex. Suppose that you a a RGB color of f 0.5 0.5 0.5 what should LaTeX automatically produce? black!50!white? or why not white!50!black? or simply black!50 ? or simply gray? ... or why not mycolor?

    – Fran
    Mar 30 at 20:20
















2












2








2








Often I use xcolor package also to create several and customize kinds of colors.



Many times I use the combination of the page 33 because it's understandable to me:



enter image description here



But to find the exact shade of color, I do a lot of tests, which take even a few hours. Sometimes I use the colors of dvipsnames, via svgnames, via x11names.



I ask if somebody knows an online tool (or a specific formula) that convert me directly an RGB color with a code like, for example, blue!50!yellow. This question is closely connected to another one that you can find on this link:



https://graphicdesign.stackexchange.com/questions/120490/as-to-known-the-colors-used-in-an-image



I don't want to define a long list of definecolor{name}{model}{color-spec} (for example definecolor{ultramarine}{RGB}{0,32,96}) because I forget all the custom colors that I have customized.










share|improve this question
















Often I use xcolor package also to create several and customize kinds of colors.



Many times I use the combination of the page 33 because it's understandable to me:



enter image description here



But to find the exact shade of color, I do a lot of tests, which take even a few hours. Sometimes I use the colors of dvipsnames, via svgnames, via x11names.



I ask if somebody knows an online tool (or a specific formula) that convert me directly an RGB color with a code like, for example, blue!50!yellow. This question is closely connected to another one that you can find on this link:



https://graphicdesign.stackexchange.com/questions/120490/as-to-known-the-colors-used-in-an-image



I don't want to define a long list of definecolor{name}{model}{color-spec} (for example definecolor{ultramarine}{RGB}{0,32,96}) because I forget all the custom colors that I have customized.







color tools






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 29 at 21:05







Sebastiano

















asked Mar 29 at 20:42









SebastianoSebastiano

11.2k42166




11.2k42166








  • 4





    Why don't you use the RGB color value and just define the color that way (give it a name)? Maybe I just don't understand your question…

    – TeXnician
    Mar 29 at 20:47






  • 4





    The problem with colors is that they depends on the medium they are used. With a monitor you use usualy rgb colors, if the pdf should be printed, you should better use cmyk, because printer use them. Now the problem is that rgb is not equal cmyk, more some colors do not exist in the other color modell. Back to the printer: it depends on the used paper how the cmyk is seen after beeing printed. Better printer have mechanism with color profiles to make you see the same color on different papers. That you have to discuss with the printing house for your book. Using colors is not simple!

    – Kurt
    Mar 29 at 21:19








  • 3





    Well, there will be rounding errors converting rgb to cmyk and you do not know if the resulting color is the color you want. Only one thing is sure: the color on monitor is not the color on print, or do you have a special workstation, build to show the color on monitor to be printed (very expensiv!)? ;-) The color specialist can have it ...

    – Kurt
    Mar 29 at 21:29






  • 2





    @Sebastiano What image? Just compile the code posted with pdflatex and you will see that image in a PDF.! So you can add a bestcolors environment in your working document to test any (already defined) color to see how exactly can be defined in any format and how exactly look like in a box (much better than simply look at the colored text or thin lines of the document, where it can be harder appreciate the true tone). What else?

    – Fran
    Mar 30 at 6:42






  • 2





    @Sebastiano I guess that this would be a bit complex. Suppose that you a a RGB color of f 0.5 0.5 0.5 what should LaTeX automatically produce? black!50!white? or why not white!50!black? or simply black!50 ? or simply gray? ... or why not mycolor?

    – Fran
    Mar 30 at 20:20
















  • 4





    Why don't you use the RGB color value and just define the color that way (give it a name)? Maybe I just don't understand your question…

    – TeXnician
    Mar 29 at 20:47






  • 4





    The problem with colors is that they depends on the medium they are used. With a monitor you use usualy rgb colors, if the pdf should be printed, you should better use cmyk, because printer use them. Now the problem is that rgb is not equal cmyk, more some colors do not exist in the other color modell. Back to the printer: it depends on the used paper how the cmyk is seen after beeing printed. Better printer have mechanism with color profiles to make you see the same color on different papers. That you have to discuss with the printing house for your book. Using colors is not simple!

    – Kurt
    Mar 29 at 21:19








  • 3





    Well, there will be rounding errors converting rgb to cmyk and you do not know if the resulting color is the color you want. Only one thing is sure: the color on monitor is not the color on print, or do you have a special workstation, build to show the color on monitor to be printed (very expensiv!)? ;-) The color specialist can have it ...

    – Kurt
    Mar 29 at 21:29






  • 2





    @Sebastiano What image? Just compile the code posted with pdflatex and you will see that image in a PDF.! So you can add a bestcolors environment in your working document to test any (already defined) color to see how exactly can be defined in any format and how exactly look like in a box (much better than simply look at the colored text or thin lines of the document, where it can be harder appreciate the true tone). What else?

    – Fran
    Mar 30 at 6:42






  • 2





    @Sebastiano I guess that this would be a bit complex. Suppose that you a a RGB color of f 0.5 0.5 0.5 what should LaTeX automatically produce? black!50!white? or why not white!50!black? or simply black!50 ? or simply gray? ... or why not mycolor?

    – Fran
    Mar 30 at 20:20










4




4





Why don't you use the RGB color value and just define the color that way (give it a name)? Maybe I just don't understand your question…

– TeXnician
Mar 29 at 20:47





Why don't you use the RGB color value and just define the color that way (give it a name)? Maybe I just don't understand your question…

– TeXnician
Mar 29 at 20:47




4




4





The problem with colors is that they depends on the medium they are used. With a monitor you use usualy rgb colors, if the pdf should be printed, you should better use cmyk, because printer use them. Now the problem is that rgb is not equal cmyk, more some colors do not exist in the other color modell. Back to the printer: it depends on the used paper how the cmyk is seen after beeing printed. Better printer have mechanism with color profiles to make you see the same color on different papers. That you have to discuss with the printing house for your book. Using colors is not simple!

– Kurt
Mar 29 at 21:19







The problem with colors is that they depends on the medium they are used. With a monitor you use usualy rgb colors, if the pdf should be printed, you should better use cmyk, because printer use them. Now the problem is that rgb is not equal cmyk, more some colors do not exist in the other color modell. Back to the printer: it depends on the used paper how the cmyk is seen after beeing printed. Better printer have mechanism with color profiles to make you see the same color on different papers. That you have to discuss with the printing house for your book. Using colors is not simple!

– Kurt
Mar 29 at 21:19






3




3





Well, there will be rounding errors converting rgb to cmyk and you do not know if the resulting color is the color you want. Only one thing is sure: the color on monitor is not the color on print, or do you have a special workstation, build to show the color on monitor to be printed (very expensiv!)? ;-) The color specialist can have it ...

– Kurt
Mar 29 at 21:29





Well, there will be rounding errors converting rgb to cmyk and you do not know if the resulting color is the color you want. Only one thing is sure: the color on monitor is not the color on print, or do you have a special workstation, build to show the color on monitor to be printed (very expensiv!)? ;-) The color specialist can have it ...

– Kurt
Mar 29 at 21:29




2




2





@Sebastiano What image? Just compile the code posted with pdflatex and you will see that image in a PDF.! So you can add a bestcolors environment in your working document to test any (already defined) color to see how exactly can be defined in any format and how exactly look like in a box (much better than simply look at the colored text or thin lines of the document, where it can be harder appreciate the true tone). What else?

– Fran
Mar 30 at 6:42





@Sebastiano What image? Just compile the code posted with pdflatex and you will see that image in a PDF.! So you can add a bestcolors environment in your working document to test any (already defined) color to see how exactly can be defined in any format and how exactly look like in a box (much better than simply look at the colored text or thin lines of the document, where it can be harder appreciate the true tone). What else?

– Fran
Mar 30 at 6:42




2




2





@Sebastiano I guess that this would be a bit complex. Suppose that you a a RGB color of f 0.5 0.5 0.5 what should LaTeX automatically produce? black!50!white? or why not white!50!black? or simply black!50 ? or simply gray? ... or why not mycolor?

– Fran
Mar 30 at 20:20







@Sebastiano I guess that this would be a bit complex. Suppose that you a a RGB color of f 0.5 0.5 0.5 what should LaTeX automatically produce? black!50!white? or why not white!50!black? or simply black!50 ? or simply gray? ... or why not mycolor?

– Fran
Mar 30 at 20:20












1 Answer
1






active

oldest

votes


















6














You can search the internet with rgb to cmyk to find free online
calculators to change an rgb color to an cmyk color.
In this case it is important to respect the color profile the printer supposed to print your document is using.



For example you can have a look to https://www.rgb2cmyk.org/ or https://www.pdf2cmyk.com/ for pdf file.



With LaTeX you can use testcolor (as mentioned in an comment by @Fran, see his answer here) to get an first idea of the used color in different models but that does not respect the needed color profile of the printer ...



At last the only one who can tell you which color values gives the printed color
you want is the printing house you use to publish your document.



Why are colors problematic?



Let us have a look on rgb colors. They are used on monitors or screens.
And that is the problem: the shown color depends on the configuration of
the monitor (contrast, brightness). In other words: if you change the monitor
(or the complete computer) you will see other colors displayed, but still using
the same color value in rgb or cmyk.



To make things worse the used color modell to print colors on paper is cmyk.
And again the real printed color depends on the used paper (thickness,
color of paper) and the used printer, its used ink or toner and the used color profile.



So you can get different printed colors by using the same cmyk value!



To make things more worse the available colors in rgb model and cmyk model are not the same, some of them for example do not exist in the other color model.



To change a rgb value to cmyk (by exactly the rip software of the printing system) there are calculations neseccary resulting in rounding errors. So if you use a rgb value in your latex code/pdf file you can not be sure which cmyk value results.



Conclusion:



To get the best result talk to the printing house publishing your book/document. Ask them which cmyk values for the colors you should use to get the expected result. I'm sure they will ask you not to use too much colors.



Now use definecolor{name}{model}{color-spec} in your LaTeX code like



definecolor{myred}{cmyk}{0,1,1,0}


to use the named color in your document with textcolor{myred}{This is in red!} or simular. Or you can name the colors after the reason to use, for example in section, chapter, etc. to be able to remember it easier ...



The main advantage now is that you can very easy change the color value depending on your printing house.



Conclusion:




  1. Talk with the printing house to define proper printing colors for your document.

  2. Use the given color values.

  3. Ignore the shown colors on your monitor. Only the printed result is important. (The only way to get the printed colors shown on the screens you need an expensive special printing system!)






share|improve this answer


























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482177%2ftool-or-formula-that-to-convert-rgb-color-to-xcolor-code-example-of-the-type%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    You can search the internet with rgb to cmyk to find free online
    calculators to change an rgb color to an cmyk color.
    In this case it is important to respect the color profile the printer supposed to print your document is using.



    For example you can have a look to https://www.rgb2cmyk.org/ or https://www.pdf2cmyk.com/ for pdf file.



    With LaTeX you can use testcolor (as mentioned in an comment by @Fran, see his answer here) to get an first idea of the used color in different models but that does not respect the needed color profile of the printer ...



    At last the only one who can tell you which color values gives the printed color
    you want is the printing house you use to publish your document.



    Why are colors problematic?



    Let us have a look on rgb colors. They are used on monitors or screens.
    And that is the problem: the shown color depends on the configuration of
    the monitor (contrast, brightness). In other words: if you change the monitor
    (or the complete computer) you will see other colors displayed, but still using
    the same color value in rgb or cmyk.



    To make things worse the used color modell to print colors on paper is cmyk.
    And again the real printed color depends on the used paper (thickness,
    color of paper) and the used printer, its used ink or toner and the used color profile.



    So you can get different printed colors by using the same cmyk value!



    To make things more worse the available colors in rgb model and cmyk model are not the same, some of them for example do not exist in the other color model.



    To change a rgb value to cmyk (by exactly the rip software of the printing system) there are calculations neseccary resulting in rounding errors. So if you use a rgb value in your latex code/pdf file you can not be sure which cmyk value results.



    Conclusion:



    To get the best result talk to the printing house publishing your book/document. Ask them which cmyk values for the colors you should use to get the expected result. I'm sure they will ask you not to use too much colors.



    Now use definecolor{name}{model}{color-spec} in your LaTeX code like



    definecolor{myred}{cmyk}{0,1,1,0}


    to use the named color in your document with textcolor{myred}{This is in red!} or simular. Or you can name the colors after the reason to use, for example in section, chapter, etc. to be able to remember it easier ...



    The main advantage now is that you can very easy change the color value depending on your printing house.



    Conclusion:




    1. Talk with the printing house to define proper printing colors for your document.

    2. Use the given color values.

    3. Ignore the shown colors on your monitor. Only the printed result is important. (The only way to get the printed colors shown on the screens you need an expensive special printing system!)






    share|improve this answer






























      6














      You can search the internet with rgb to cmyk to find free online
      calculators to change an rgb color to an cmyk color.
      In this case it is important to respect the color profile the printer supposed to print your document is using.



      For example you can have a look to https://www.rgb2cmyk.org/ or https://www.pdf2cmyk.com/ for pdf file.



      With LaTeX you can use testcolor (as mentioned in an comment by @Fran, see his answer here) to get an first idea of the used color in different models but that does not respect the needed color profile of the printer ...



      At last the only one who can tell you which color values gives the printed color
      you want is the printing house you use to publish your document.



      Why are colors problematic?



      Let us have a look on rgb colors. They are used on monitors or screens.
      And that is the problem: the shown color depends on the configuration of
      the monitor (contrast, brightness). In other words: if you change the monitor
      (or the complete computer) you will see other colors displayed, but still using
      the same color value in rgb or cmyk.



      To make things worse the used color modell to print colors on paper is cmyk.
      And again the real printed color depends on the used paper (thickness,
      color of paper) and the used printer, its used ink or toner and the used color profile.



      So you can get different printed colors by using the same cmyk value!



      To make things more worse the available colors in rgb model and cmyk model are not the same, some of them for example do not exist in the other color model.



      To change a rgb value to cmyk (by exactly the rip software of the printing system) there are calculations neseccary resulting in rounding errors. So if you use a rgb value in your latex code/pdf file you can not be sure which cmyk value results.



      Conclusion:



      To get the best result talk to the printing house publishing your book/document. Ask them which cmyk values for the colors you should use to get the expected result. I'm sure they will ask you not to use too much colors.



      Now use definecolor{name}{model}{color-spec} in your LaTeX code like



      definecolor{myred}{cmyk}{0,1,1,0}


      to use the named color in your document with textcolor{myred}{This is in red!} or simular. Or you can name the colors after the reason to use, for example in section, chapter, etc. to be able to remember it easier ...



      The main advantage now is that you can very easy change the color value depending on your printing house.



      Conclusion:




      1. Talk with the printing house to define proper printing colors for your document.

      2. Use the given color values.

      3. Ignore the shown colors on your monitor. Only the printed result is important. (The only way to get the printed colors shown on the screens you need an expensive special printing system!)






      share|improve this answer




























        6












        6








        6







        You can search the internet with rgb to cmyk to find free online
        calculators to change an rgb color to an cmyk color.
        In this case it is important to respect the color profile the printer supposed to print your document is using.



        For example you can have a look to https://www.rgb2cmyk.org/ or https://www.pdf2cmyk.com/ for pdf file.



        With LaTeX you can use testcolor (as mentioned in an comment by @Fran, see his answer here) to get an first idea of the used color in different models but that does not respect the needed color profile of the printer ...



        At last the only one who can tell you which color values gives the printed color
        you want is the printing house you use to publish your document.



        Why are colors problematic?



        Let us have a look on rgb colors. They are used on monitors or screens.
        And that is the problem: the shown color depends on the configuration of
        the monitor (contrast, brightness). In other words: if you change the monitor
        (or the complete computer) you will see other colors displayed, but still using
        the same color value in rgb or cmyk.



        To make things worse the used color modell to print colors on paper is cmyk.
        And again the real printed color depends on the used paper (thickness,
        color of paper) and the used printer, its used ink or toner and the used color profile.



        So you can get different printed colors by using the same cmyk value!



        To make things more worse the available colors in rgb model and cmyk model are not the same, some of them for example do not exist in the other color model.



        To change a rgb value to cmyk (by exactly the rip software of the printing system) there are calculations neseccary resulting in rounding errors. So if you use a rgb value in your latex code/pdf file you can not be sure which cmyk value results.



        Conclusion:



        To get the best result talk to the printing house publishing your book/document. Ask them which cmyk values for the colors you should use to get the expected result. I'm sure they will ask you not to use too much colors.



        Now use definecolor{name}{model}{color-spec} in your LaTeX code like



        definecolor{myred}{cmyk}{0,1,1,0}


        to use the named color in your document with textcolor{myred}{This is in red!} or simular. Or you can name the colors after the reason to use, for example in section, chapter, etc. to be able to remember it easier ...



        The main advantage now is that you can very easy change the color value depending on your printing house.



        Conclusion:




        1. Talk with the printing house to define proper printing colors for your document.

        2. Use the given color values.

        3. Ignore the shown colors on your monitor. Only the printed result is important. (The only way to get the printed colors shown on the screens you need an expensive special printing system!)






        share|improve this answer















        You can search the internet with rgb to cmyk to find free online
        calculators to change an rgb color to an cmyk color.
        In this case it is important to respect the color profile the printer supposed to print your document is using.



        For example you can have a look to https://www.rgb2cmyk.org/ or https://www.pdf2cmyk.com/ for pdf file.



        With LaTeX you can use testcolor (as mentioned in an comment by @Fran, see his answer here) to get an first idea of the used color in different models but that does not respect the needed color profile of the printer ...



        At last the only one who can tell you which color values gives the printed color
        you want is the printing house you use to publish your document.



        Why are colors problematic?



        Let us have a look on rgb colors. They are used on monitors or screens.
        And that is the problem: the shown color depends on the configuration of
        the monitor (contrast, brightness). In other words: if you change the monitor
        (or the complete computer) you will see other colors displayed, but still using
        the same color value in rgb or cmyk.



        To make things worse the used color modell to print colors on paper is cmyk.
        And again the real printed color depends on the used paper (thickness,
        color of paper) and the used printer, its used ink or toner and the used color profile.



        So you can get different printed colors by using the same cmyk value!



        To make things more worse the available colors in rgb model and cmyk model are not the same, some of them for example do not exist in the other color model.



        To change a rgb value to cmyk (by exactly the rip software of the printing system) there are calculations neseccary resulting in rounding errors. So if you use a rgb value in your latex code/pdf file you can not be sure which cmyk value results.



        Conclusion:



        To get the best result talk to the printing house publishing your book/document. Ask them which cmyk values for the colors you should use to get the expected result. I'm sure they will ask you not to use too much colors.



        Now use definecolor{name}{model}{color-spec} in your LaTeX code like



        definecolor{myred}{cmyk}{0,1,1,0}


        to use the named color in your document with textcolor{myred}{This is in red!} or simular. Or you can name the colors after the reason to use, for example in section, chapter, etc. to be able to remember it easier ...



        The main advantage now is that you can very easy change the color value depending on your printing house.



        Conclusion:




        1. Talk with the printing house to define proper printing colors for your document.

        2. Use the given color values.

        3. Ignore the shown colors on your monitor. Only the printed result is important. (The only way to get the printed colors shown on the screens you need an expensive special printing system!)







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 1 at 22:18

























        answered Apr 1 at 22:08









        KurtKurt

        41k950164




        41k950164






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482177%2ftool-or-formula-that-to-convert-rgb-color-to-xcolor-code-example-of-the-type%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

            ComboBox Display Member on multiple fields

            Is it possible to collect Nectar points via Trainline?