# Can I alias a color?

I would like to define some colors and then define some aliases to them. For instance, if I define the following color:

`\definecolor{MyColorA}{rgb}{0.1,0.2,0.3}`

and then want to define an alias "NoteColor" to be the same as "MyColorA", what is the command? I tried:

`\definecolor{NoteColor}{named}{MyColorA}`

but this did not work. Any suggestions or links welcome. Thanks.

-
Are you sure the second command didn't work? It should have. It's an alternate syntax to the `\colorlet` solutions given in the answers: `\definecolor{Alias}{named}{ExistingColour}` = `\colorlet{Alias}{ExistingColour}`. –  Alan Munn Oct 25 '11 at 14:08
I tried `\definecolor{Alias}{named}{ExistingColour}` but it still did not work. However, the xcolor solution below works. –  kmccoy Oct 25 '11 at 15:28
@kmmcoy Both commands are from `xcolor` so they should both with. –  Alan Munn Oct 25 '11 at 16:00

``````\colorlet{Notecolor}{MyColorA}
Perfect! I changed to use the `xcolor` package and used `\colorlet{Alias}{ExistingColour}` which works nicely. Thanks. –  kmccoy Oct 25 '11 at 15:29
With xcolor you can use `\colorlet`.