I am using color package in latex to highlight some of my text in specific red color using RGB format. my code is something like this :

\cfoot{\hspace{55mm}CV $|$ \thepage}
\usepackage[colorlinks=false, pdfborder={0 0 0}]{hyperref}
\usepackage[width=18.00cm, height=22.00cm]{geometry}

%%%%%%%%%%_____________Color Text Box Packages______________%%%%%%%%%%%
\definecolor{mycolor}{rgb}{0.122, 0.435, 0.698}

%%%%%%%%%%_____________Color for Text ______________%%%%%%%%%%%
\usepackage[usenames, dvipsnames]{color}

%%%%%%%%%%_____________Start of main document______________%%%%%%%%%%%

    Undergrad&\href{http://www.buet.ac.bd/}{Bangladesh University of Engineering and Technology}, Dhaka&[2013-Present]\\
    &B.Sc. in Mechanical Engineering, CGPA-3.36/4.00\vspace{1.5mm}&[February, 2017]\\
    Higher School&\href{http://www.soshgcdhaka.edu.bd/}{SOS Hermann Gmeiner College}, Dhaka&[2010-2012]\\
    &Higher Secondary Certificate (HSC), CGPA-5.00/5.00\vspace{1.5mm}&\\
    &\href{https://www.acps.edu.bd/}{Adamjee Cantonment Public School}, Dhaka&[2003-2010]\\
    &Secondary School Certificate (SSC), CGPA-5.00/5.00& 


But when i try to compile, it shows error message and does not compile :

Option clash for package color. \usepackage

how can i solve this problem?

  • This is basically the same problem as tex.stackexchange.com/questions/51488/… The thing is that tcolorbox loads xcolor which loads color. When loading a package more than once (which you in general might as well try to avoid), the package options used the second time has to be a subset of those used the first time. Sep 15, 2017 at 6:17

1 Answer 1


Instead of using this format of using packages,

  \usepackage[usenames, dvipsnames]{color}

I just omitted the [usenames, dvipsnames] part, and now, it compiles just fine.

  • 3
    you could more simply have omitted the entire line. Sep 15, 2017 at 6:54
  • Note the \ usenames option is deprecated, as it has been the default for quite a few years.
    – Bernard
    Sep 15, 2017 at 9:43

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