A rainbow birthday dessert table against a deep navy wall: a balloon arch in red, orange, yellow, green, blue and purple, a striped rainbow layer cake on a white stand, rainbow frosted cupcakes, a jar of rainbow candy and striped paper cups under warm string lights.

Rainbow color palettes, bright to pastel

Rainbow colors from the photos on this page, tuned in Hue42. Pick a look, open its colors and make them yours.

Balloon Arch: colors from this photo, tuned in Hue42

The rainbow colors are red, orange, yellow, green, blue, indigo and violet, often remembered as ROYGBIV. These five-color palettes borrow from the rainbow, with shades adjusted to give you useful text and background pairs.

Pick your rainbow

Tap any color to copy its hex code.

Seven unwrapped wax crayons in rainbow order on white paper, with a scribble of each color below them.

Crayon Box

Crayon red through green with an indigo for text, for classroom labels or a kids' menu.

Hex codes, names and checks
Colors in Crayon Box
ColorHexRGBRole
Red#DB2C2D219, 44, 45Base
Pumpkin#FA6F19250, 111, 25Analog
Saffron#F4CF23244, 207, 35Tint
Shamrock#14995220, 153, 82Accent
Deep Blueberry#1E236830, 35, 104Anchor
  • A readable pair. Best text pairing is 9.2:1 (4.5:1 passes WCAG AA).
  • Light to dark range. Lightness spans 56 points of 100.
  • Every color distinct. No two colors are close enough to be confused.
  • Holds up colorblind. Colors stay distinguishable under common color vision types.
  • Room to breathe. Every color is loud; nothing steps back.
A tall slice of six layer rainbow cake with white frosting and sprinkles on a pale pink plate, with a fork, on a mint green table.

Rainbow Layer Cake

The layers bottom to top, with the purple deepened to plum for the text on a bakery card.

Hex codes, names and checks
Colors in Rainbow Layer Cake
ColorHexRGBRole
Red#DF2225223, 34, 37Base
Pumpkin#F97700249, 119, 0Analog
Saffron#F9C635249, 198, 53Tint
Cerulean#00739C0, 115, 156Accent
Deep Eggplant#37043555, 4, 53Anchor
  • A readable pair. Best text pairing is 10.6:1 (4.5:1 passes WCAG AA).
  • Light to dark range. Lightness spans 61 points of 100.
  • Every color distinct. No two colors are close enough to be confused.
  • Holds up colorblind. Colors stay distinguishable under common color vision types.
  • Room to breathe. There is a quiet color for surfaces and backgrounds.
A child's bedroom with a large pastel rainbow arch painted on a white wall, a gray bed with a pastel striped quilt and a round pink rug with wooden toys.

Pastel Nursery

Soft pastels with a slate gray for text, for a nursery wall or baby shower cards.

Hex codes, names and checks
Colors in Pastel Nursery
ColorHexRGBRole
Melon#F4B1A8244, 177, 168Base
Apricot#F7C5A8247, 197, 168Analog
Lemonade#F9ECB6249, 236, 182Tint
Muted Sky#BFD3EF191, 211, 239Accent
Charcoal#383D4556, 61, 69Anchor
  • A readable pair. Best text pairing is 9.2:1 (4.5:1 passes WCAG AA).
  • Light to dark range. Lightness spans 58 points of 100.
  • Every color distinct. No two colors are close enough to be confused.
  • Holds up colorblind. 1 pair may be confused under common color vision types.
  • Room to breathe. There is a quiet color for surfaces and backgrounds.
A rope rainbow wall hanging in terracotta, mustard, sage, dusty blue and cream with long fringe, above a rattan chair with a rust cushion and a trailing plant.

Boho Rainbow

A muted boho rainbow with cream and charcoal, for a living room or a calm brand.

Hex codes, names and checks
Colors in Boho Rainbow
ColorHexRGBRole
Vivid Hazelnut#CB7042203, 112, 66Base
Muted Marigold#D7A44D215, 164, 77Accent
Artichoke#A29972162, 153, 114Support
Champagne#F5E5D3245, 229, 211Tint
Gunmetal#31342D49, 52, 45Anchor
  • A readable pair. Best text pairing is 10.2:1 (4.5:1 passes WCAG AA).
  • Light to dark range. Lightness spans 61 points of 100.
  • Every color distinct. No two colors are close enough to be confused.
  • Holds up colorblind. Colors stay distinguishable under common color vision types.
  • Room to breathe. There is a quiet color for surfaces and backgrounds.
A white bookshelf of well used books sorted by color, a shelf each of red and pink, orange, yellow, green and blue to purple, with a potted plant and a cream cup among them.

Shelf by Color

The shelves top to bottom, red to a deep blue for text, for a reading corner or a library display.

Hex codes, names and checks
Colors in Shelf by Color
ColorHexRGBRole
Light Cranberry#AF2930175, 41, 48Base
Terracotta#DF7242223, 114, 66Analog
Mango#FABA52250, 186, 82Tint
Fern#57734287, 115, 66Accent
Navy#061E406, 30, 64Anchor
  • A readable pair. Best text pairing is 9.6:1 (4.5:1 passes WCAG AA).
  • Light to dark range. Lightness spans 59 points of 100.
  • Every color distinct. No two colors are close enough to be confused.
  • Holds up colorblind. Colors stay distinguishable under common color vision types.
  • Room to breathe. There is a quiet color for surfaces and backgrounds.
A clear triangular glass prism standing on dark slate, with a soft rainbow band of light falling across the stone beside it.

Prism on Slate

Spectrum colors on near black, for a dark screen or a night event poster.

Hex codes, names and checks
Colors in Prism on Slate
ColorHexRGBRole
Jet#0F0F0F15, 15, 15Base
Deep Pumpkin#E36927227, 105, 39Analog
Saffron#F8C647248, 198, 71Tint
Vivid Matcha#88B646136, 182, 70Analog
Muted Sapphire#2C5AAB44, 90, 171Accent
  • A readable pair. Best text pairing is 12.0:1 (4.5:1 passes WCAG AA).
  • Light to dark range. Lightness spans 68 points of 100.
  • Every color distinct. No two colors are close enough to be confused.
  • Holds up colorblind. Colors stay distinguishable under common color vision types.
  • Room to breathe. There is a quiet color for surfaces and backgrounds.
More rainbow palettes
  • Balloon Arch

    Open in Hue42

    Balloon red, orange, yellow and green with a deep violet for the words on a birthday invitation.

    #D4302F #F46527 #FCC031 #59A941 #260255

  • Classic Spectrum

    Open in Hue42

    A classic spectrum in five: red, amber, green, blue and an ink anchor.

    #E63946 #F4A100 #2A9D5C #2B6CB0 #1B1B2F

  • Neon on Black

    Open in Hue42

    Neon rainbow on black for a glow party, a gaming setup or a poster.

    #0D0D0D #FF3CAC #FFE600 #00F5A0 #2D9CFF

  • Retro Rainbow

    Open in Hue42

    A retro rainbow: tomato, mustard, teal and blue over dark brown.

    #D1495B #EDAE49 #00798C #30638E #3D2B1F

Make it yours in Hue42

  1. Start from a photo or a color

    Choose a photo of a party table, a painted wall or a box of crayons, or type one color. Hue42 builds a palette from it, and the photo stays on your device.

  2. Keep what you like

    Generate a new palette as often as you like. Lock the colors you want to keep and the rest change around them.

  3. Check it, then copy it

    Every palette gets checks for a readable text pair, color blindness and room to breathe, so a bright rainbow still reads. Select any color to copy its hex code.

Open these colors in Hue42
The Hue42 color tool showing the Balloon Arch palette, each with its hex code and role.
  • Red#D4302F
  • Deep Coral#F46527
  • Amber#FCC031
  • Light Grass#59A941
  • Deep Blueberry#260255

Rainbow posters, ready to edit

Posters in palettes from this page. The events are made up: open one, put in your own date, time and place, and save it for an invitation, a flyer or a classroom wall.

More looks

Shop the look

Shop similar pieces; shades and materials vary by seller.

Rainbow birthday party pack

Ideas to search for in these five colors: a balloon arch, plates, cups, candles and a dark purple cloth to set them off. Shades vary from seller to seller, so compare each one with the swatches before you buy.

As an Amazon Associate I earn from qualifying purchases.

A short guide to rainbow color palettes

What are the rainbow colors and their hex codes?

The rainbow is usually named in seven colors: red, orange, yellow, green, blue, indigo and violet, remembered as ROYGBIV. A real rainbow is a smooth band of light, so there is no official hex code for any of them. The codes below are a clear, common set for screens.

Indigo is the one people argue about. Newton named seven colors, and many people today name six and leave indigo out. Use six or seven, whichever suits your design.

Red #E81416.
Strong and warm, the outer edge of the band.
Orange #FFA500.
The CSS named orange, bright and friendly.
Yellow #FAEB36.
Very light: never use it for text on white.
Green #79C314.
A fresh yellow green.
Blue #487DE7.
A clear mid blue.
Indigo #4B369D.
A deep blue violet, good for text.
Violet #70369D.
The inner edge of the band.
Pastel, muted, neon and jewel rainbows

The same order of hues works at any strength. Lighten every color and you get a pastel rainbow for a nursery or a baby shower. Pull the colors toward clay, mustard, sage and dusty blue and you get the boho rainbow that suits a living room. Push them bright on black for neon, or deepen them to ruby, gold, emerald and plum for a jewel set.

Mixing strengths is a choice too: keeping a set at one strength tends to read as calm and planned, while a pastel next to a full strength color reads as playful.

What goes with a rainbow

Many designs add one quiet color that is not part of the rainbow. White or cream keeps a bright set clean and cheerful; charcoal, navy or near black makes the colors glow. One option is to give the quiet color the background or the text and let the rainbow take the shapes, stripes and accents.

In a room, you can keep the walls quiet and bring the rainbow in with smaller things such as books, cushions, a rug or a print, or go bold with a full rainbow wall in a child's room or a play space.

Rainbow party colors

For a rainbow birthday, one approach is to choose one palette and match the balloons, plates, cups and napkins to it; another is to mix many shades for a looser, homemade feel. A deep or white backdrop behind the balloon arch helps every color stand out.

For a rainbow cake, color each layer of batter separately and bake them thin. Gel food coloring gives stronger color with less liquid. Stack the layers in spectrum order, red to purple in either direction, or in any order you like.

Readable text on a rainbow

Rainbow colors differ a lot in lightness, so no one text color works on every stripe. With the codes above, white text reaches 4.6:1 on red #E81416, 9.1:1 on indigo #4B369D and 7.8:1 on violet #70369D. Near black #1A1A1A reaches 8.8:1 on orange #FFA500, 14.1:1 on yellow #FAEB36 and 8.0:1 on green #79C314. Blue #487DE7 is the hard one: white gives 3.9:1 and near black 4.4:1, both under the 4.5:1 that body text needs, so use it for large type and shapes, or darken it.

Red and green look alike to many people with color vision deficiency. Make one of them clearly lighter, or add labels or a pattern. The Hue42 color tool checks the text pair and color vision for every palette.

Where rainbows work and where they do not

Rainbows suit children's rooms, classrooms, parties, food, crafts and anything meant to feel cheerful. They also suit category labels where there are only a few groups and each color is easy to tell apart.

For charts of an ordered scale, a rainbow can be harder to read than one hue getting darker, because hue has no built in low to high order.

Questions people ask

What are the hex codes for the rainbow colors?

There is no official set, because a rainbow is a smooth band of light. A clear common set is red #E81416, orange #FFA500, yellow #FAEB36, green #79C314, blue #487DE7, indigo #4B369D and violet #70369D. Every palette on this page has its own codes, so pick the strength that suits your use.

How many colors are in a rainbow?

Seven by the classic count: red, orange, yellow, green, blue, indigo and violet. Newton named seven, and many people today name six and leave out indigo. A real rainbow is continuous, so any count is a choice. The palettes here use five colors and keep the feel of the whole band.

What are pastel rainbow colors?

Pastel rainbow colors are the same hues made much lighter and softer: blush pink, peach, butter yellow, mint and powder blue, often with a lilac. They suit nurseries, baby showers and soft stationery. Add a slate or charcoal for text, since pale colors on white are hard to read.

How do I make a rainbow palette look less childish?

A few options: mute the colors, or add a neutral. A boho rainbow of terracotta, mustard, sage and dusty blue on cream looks calm, and a jewel set of ruby, gold, emerald and plum looks rich. Use fewer colors at a time, keep the rest of the space quiet and let one rainbow element carry the look.

What color goes with a rainbow?

One quiet color: white, cream, charcoal, navy or near black. White and cream keep a rainbow fresh, while a dark ground makes bright colors glow. Use the quiet color for the background or the text. A second strong color is possible, but the rainbow already covers every hue.

What colors do I need for a rainbow party?

One easy approach is to pick five or six colors from one palette and match the balloons, plates, cups, napkins and cake to them. Red, orange, yellow, green, blue and purple is the classic set. A white or deep navy backdrop behind the table makes the colors stand out in photos.

Is a rainbow palette color blind friendly?

It can be if you manage lightness. Red and green neighbors blur for many people with color vision deficiency, so make one clearly lighter than the other, and add labels or patterns where the colors carry meaning. The Hue42 color tool runs a color vision check on each palette.

Build your own rainbow palette

Open any palette in the Hue42 color tool, mute or brighten the colors, and check that your text and neighbors still read clearly. It is free to use.

Open these colors in Hue42

Or pull a palette from a photo of your party table, a painted wall or a box of crayons