The arrows in my tikz-cd graph are green. I would like the label for the arrows to be a different colour. In fact, I would like the text in the label to be of multiple colours. Is it possible to to this?

  • 2
    That is probably possible. Could you provide a small example document that shows your current output? That would make it much easier to people that want to answer to get started on providing a solution instead of needing to recreate your document first.
    – Marijn
    Jul 29, 2020 at 14:44

1 Answer 1


I'm not really sure what you want, but here is an example that could be helpful:


& B \ar[violet]{r}[swap]{h\circ{\color{cyan}g}} 
& C

enter image description here

  • 1
    I was using syntax like \arrow[\rightarrow, r, "text" description] - of course, what you have makes obvious sense. Thank you! Jul 29, 2020 at 22:55
  • 1
    In that case use \arrow[rightarrow, blue, r, "{\color{red}text}"{description,inner sep=0.1mm}] note that description adds a white rectangle to the label, so you may want it a little smaller. Jul 29, 2020 at 23:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .