Reference manual/Color library
Back to base colors
COLOR USAGE GUIDE · base

purple.

A case-sensitive color name from the built-in xcolor palette.

#BF0040A little color.
A lot of possibility.
purple · base

Color specification

Color set
base
Native model
rgb
Native values
0.75,0,0.25
Screen hex
#BF0040

Screen values are approximate. CMYK previews use xcolor’s conversion; printed output depends on your driver and color profile.

\definecolor{mypurple}{rgb}{0.75,0,0.25}

Use purple 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{purple}{A little color goes a long way.}
Preview text in simulator

Add a background

Place a colored box behind a small piece of text.

\colorbox{purple!20}{Highlighted text}
Preview background in simulator

Make a lighter shade

Mix 40% purple with 60% white.

\colorlet{myShade}{purple!40}
\textcolor{myShade}{A softer shade}
Open in color mixer
Explore more xcolor commands