I would like to know how to create a perfect RGB gradient in Illustrator like this:

enter image description here

Edit: I tried to use the gradient tool, but how to place the colors correct?

  • 2
    Can you show us your attempt so far and explain why it needs improvement?
    – JohnB
    Feb 1, 2015 at 18:18
  • @JohnB this is an example image from the web to show what I want to achieve.
    – p2or
    Feb 1, 2015 at 18:21
  • 2
    Shows no effort. What have you tried? Why is it not working? John did ask... you skirted the question. My down vote is not personal. This is just a poor question due to the lack of effort displayed.
    – Scott
    Feb 1, 2015 at 18:27
  • 2
    Simple "how-tos" are not okay here. It's been discussed. meta.graphicdesign.stackexchange.com/questions/614/… You need to at least show some effort to solve the issue yourself. You knew when you posted this there was no actual effort behind it :)
    – Scott
    Feb 1, 2015 at 18:45

1 Answer 1


The shown gradient consists of 5 full colors.

  • #ff0000 (red)
  • #ffff00 (yellow)
  • #00ff00 (green)
  • #00ffff (cyan)
  • #0000ff (blue)

Use the gradient tool and setup the colors with an offset of 20% like this:

enter image description here

  • oddly, it skips magenta!
    – JohnB
    Feb 1, 2015 at 21:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.