HTML Rainbow Color Codes (Color Hex)

written by Caro on October 25, 2012 in All Posts and Art with 2 comments">2 comments

I wanted to play with the rainbow colors in Adobe Illustrator, so I googled for the correct color hex codes to use  but apparently it wasn’t that easy to just grab Rainbow hex codes.

I know, I know. First world problems but I was honestly surprised that I couldn’t type rainbow hex codes and quickly find the color values of the rainbow colors in the first link of the search page. Or second.

Instead it showed some people asking something about being able to write with rainbow gradient, you know… those annoying texts that we used to see on MySpace or Geocities sites? You do it by using rainbow text generators

With a little bit more digging, I could really only find one place that exactly answered my question and that was in a Simple Wikipedia entry. So here I am, writing this post in order to help fellow internet users looking for the exact same thing.

Rainbow: Color Hex Codes and RGB values

The color hex codes and RGB values for the colors of rainbows are as follow:

Hex Color Codes:

Red: #FF0000
Orange: #FF7F00
Yellow: #FFFF00
Green: #00FF00
Blue: #0000FF
Indigo: #4B0082
Violet: #8F00FF

sRGB:

Red: (255, 0, 0)
Orange: (255, 127, 0)
Yellow: (255, 255, 0)
Green: (0, 255, 0)
Blue: (0, 0, 255)
Indigo: (75, 0, 130)
Violet: (143, 0, 255)

Or just grab this image:

List of Hex color codes and RGB values of the colors in the Rainbow

Typical Wikipedia Source