COLOR USAGE GUIDE · base
magenta.
A case-sensitive color name from the built-in xcolor palette.
A lot of possibility.magenta · base
Color specification
- Color set
- base
- Native model
- cmyk
- Native values
- 0,1,0,0
- Screen hex
- #FF00FF
Screen values are approximate. CMYK previews use xcolor’s conversion; printed output depends on your driver and color profile.
\definecolor{mymagenta}{cmyk}{0,1,0,0}Use magenta in your document
1. Load the color set
Add this to your preamble before \begin{document}.
\usepackage{xcolor}2. Color some text
Apply color to a word, sentence, or heading.
\textcolor{magenta}{A little color goes a long way.}Add a background
Place a colored box behind a small piece of text.
\colorbox{magenta!20}{Highlighted text}Make a lighter shade
Mix 40% magenta with 60% white.
\colorlet{myShade}{magenta!40}
\textcolor{myShade}{A softer shade}