Fix the option clash for package xcolor.
A LaTeX error saying Option clash for package xcolor means a class or another package loaded xcolor before your preamble with different options. You can fix it with \PassOptionsToPackage, by passing options to \documentclass, or by changing the order of your packages.
The short answer: put \PassOptionsToPackage before your document class, pass the needed options directly to \documentclass, or load xcolor before packages like tikz or pgfplots.
Why the option clash happens
LaTeX forbids loading the same package twice with conflicting options. When a class like beamer or acmart, or a package like tikz or pgfplots, silently calls \usepackage{xcolor} during setup, any later call in your preamble with extra parameters triggers an error.
The log shows what happened. Typing h in the console during compilation reveals which options were loaded first and which ones triggered the collision.
Three ways to fix it
Choose the method that fits your document structure and class.
Method 1: Pass options before the document class
Preload options with PassOptionsToPackage
Place \PassOptionsToPackage at the very top of your file before \documentclass. This tells LaTeX which options to use the moment xcolor is first loaded by any underlying class or package.
\PassOptionsToPackage{table, dvipsnames}{xcolor} \documentclass{article} \usepackage{xcolor}
Method 2: Pass options to the document class
Forward options through your class declaration
Classes like beamer and memoir accept package options directly inside square brackets and forward them automatically to xcolor.
\documentclass[xcolor={dvipsnames, x11names}]{beamer}
Method 3: Reorder your preamble packages
Load xcolor before graphics and drawing tools
If the conflict comes from tikz, pgfplots, or tcolorbox, load xcolor explicitly with your required options before any of those packages are called.
\usepackage[table]{xcolor} \usepackage{tikz} \usepackage{pgfplots}
Questions
What does option clash for package xcolor mean?
It means xcolor was loaded twice with different parameters. The first time sets one set of options, and your later \usepackage call requests another, which LaTeX rejects.
How do I see the full error details in Texeno?
Check the compilation log pane at the bottom of the editor. It shows the exact line number and names both sets of conflicting options.
Does this error happen with classes like beamer?
Yes. Beamer loads xcolor automatically. To add options like x11names or dvipsnames, pass them directly in the \documentclass brackets.
Try your own paper in Texeno.
Start free, upload a project as a .zip and press Recompile. Upgrade when you need longer compiles.
Start writing