Skip to content
Kenerate IconKenerate Icon
Kenerate AI
Loading your account

Free rainbow backgrounds · hex codes · AI

Rainbow background: free gradient PNGs, hex codes and AI designs

A rainbow gradient, rainbow stripes and a pastel rainbow as PNGs for phone, desktop and square posts, with every colour's hex code, plus eight AI rainbow backgrounds with the prompts that made them.

Woman in a navy blazer in a busy office (original)
Woman in a navy blazer in a busy office (cut out)
OriginalCut out
  • Red #FF0000 → violet #EE82EE
  • 9 gradient PNGs
  • 8 AI backgrounds
  • Your photo on a rainbow in about 5 s

Updated by the

Made with Kenerate

Quick answer

Updated

How do you make a rainbow background?

To make a rainbow background, download a gradient PNG from this page (red #FF0000 → violet #EE82EE, as a smooth gradient, stripes or a pastel blend) in 1920 × 1080, 1080 × 1920 or 1080 × 1080, or describe one in Kenerate's Image Studio with Qwen Image 3.0. To put a photo on a rainbow, cut it out with Cutout HD and upload the rainbow behind it.

Key facts

Rainbow stops
#FF0000 · #FFA500 · #FFFF00 · #008000 · #0000FF · #4B0082 · #EE82EE
Downloads
3 designs × 3 sizes = 9 PNGs
Free PNG sizes
1920×1080 · 1080×1920 · 1080×1080
AI models
Qwen Image 3.0 · Seedream 5.0 Pro

AI rainbow backgrounds

Rainbow background ideas: 8 AI backgrounds

Every rainbow background here was made in Kenerate with Qwen Image 3.0 or Seedream 5.0 Pro: a pastel rainbow sky, a holographic gradient, glitter, bokeh, marbled paint, silk ribbons, a boho rainbow and sprinkles, in phone (9:16), desktop (16:9) and square (1:1). Open one to copy its prompt.

Download

Download the AI rainbow backgrounds

Each one resized to a standard size as a JPG. Free to download and use.

Want other colours or another size? Open the image in the gallery above and choose “Use this prompt” to make your own version.

Free downloads

What are the rainbow hex codes? Rainbow gradient PNGs

Three rainbow designs as PNGs, each in three sizes: 1920 × 1080 (desktop, slides, Zoom), 1080 × 1920 (phone, Stories) and 1080 × 1080 (square post). Every stop is a CSS named colour, listed in order. Free for any use.

Rainbow gradient PNGs with their stop colours and downloads
DesignColours in orderDownload PNG
Rainbow gradientred #FF0000 → orange #FFA500 → yellow #FFFF00 → green #008000 → blue #0000FF → indigo #4B0082 → violet #EE82EE1920 × 1080 · 1080 × 1920 · 1080 × 1080
Rainbow stripesred #FF0000 → orange #FFA500 → yellow #FFFF00 → green #008000 → blue #0000FF → indigo #4B0082 → violet #EE82EE1920 × 1080 · 1080 × 1920 · 1080 × 1080
Pastel rainbow gradientlight pink #FFB6C1 → peach puff #FFDAB9 → lemon chiffon #FFFACD → pale green #98FB98 → light sky blue #87CEFA → plum #DDA0DD1920 × 1080 · 1080 × 1920 · 1080 × 1080

The smooth designs run left to right with evenly spaced stops; the stripes run top to bottom, one flat band per colour. For one colour only, see the pink, yellow or light blue pages.

Smooth rainbow gradient from red through orange, yellow, green, blue and indigo to violet, left to right
Rainbow gradient, 1080 × 1080

Photo → rainbow

Can I put a photo on a rainbow background?

Yes. Four real photos cut out with Cutout HD and put on rainbows from this page: two gradient PNGs and two AI backgrounds. Tap “Original” to see the scene.

  • Woman in a navy blazer in a busy office (original)
    Woman in a navy blazer in a busy office (cut out)
    OriginalCut out

    Office headshot → pastel rainbow

    Cutout HD, then the pastel rainbow PNG uploaded under Photos.

    Kenerate Cutout HD

    Try this photo
  • Woman with big curly backlit hair on a city street (original)
    Woman with big curly backlit hair on a city street (cut out)
    OriginalCut out

    City street → AI holographic gradient

    The holographic pastel background from this page.

    Kenerate Cutout HD

    Try this photo
  • Bearded man in a knit sweater in a busy cafe (original)
    Bearded man in a knit sweater in a busy cafe (cut out)
    OriginalCut out

    Cafe portrait → rainbow stripes

    The stripes PNG: seven flat bands behind a dark sweater.

    Kenerate Cutout HD

    Try this photo
  • Golden retriever sitting on grass in a park (original)
    Golden retriever sitting on grass in a park (cut out)
    OriginalCut out

    Park → AI rainbow sky

    Fur kept with Cutout HD, on the pastel rainbow sky.

    Kenerate Cutout HD

    Try this photo

Photo → rainbow

How to put a photo on a rainbow background

  1. Step 1: Download a rainbow background

    Save one of the gradient PNGs or AI rainbow backgrounds from this page in the size you need.

  2. Step 2: Upload and cut out the photo

    Add a JPG, PNG or WEBP to the background remover and use Cutout HD for hair and fur, or Cutout for simple products.

  3. Step 3: Add the rainbow behind it

    Under “Add new background”, open Photos and upload the rainbow PNG. The built-in gradient presets have two colours only, so a rainbow goes in as a photo.

    Tip: Dark clothes and hair stand out on the bright rainbow; pale subjects look better on the pastel rainbow.

  4. Step 4: Download

    The photo is saved as a PNG at the cut-out's size, with the rainbow cover-fitted behind it.

With AI

How to make your own rainbow background with AI

  1. Step 1: Open Image Studio and pick a model

    Qwen Image 3.0 is on the free plan; Seedream 5.0 Pro is good for glitter, marbled paint and 3D ribbons.

  2. Step 2: Choose the shape

    9:16 for a phone or Stories, 16:9 for a desktop or slides, 1:1 for a square post.

  3. Step 3: Name the colours in order

    List them, for example “red, orange, yellow, green, blue and violet”, or “pink, peach, lemon, mint, sky blue and lilac” for pastel, then the texture, and add “no text”.

    Tip: Add “empty space in the middle” for a lock screen, or “calm top third” for a desktop with icons.

  4. Step 4: Generate and download

    Most images arrive in under a minute. Download it, or run it through the image upscaler for 4K.

Checked 15 November 2026

Gradient PNG, AI background or your photo on a rainbow?

Three kinds of rainbow background, for three different jobs.

Gradient PNG, AI background or your photo on a rainbow? — checked 15 November 2026
Rainbow gradient PNGAI rainbow backgroundYour photo on a rainbow
Best forSlides, banners, a base for your own designPhone and desktop backgrounds, postsHeadshots, pets, profile pictures
Exact hex coloursYesNoYes
Sizes1920×1080, 1080×1920, 1080×10809:16, 16:9, 1:1 and moreThe photo's own size
TimeInstant downloadUnder a minuteAbout 5 s

Look closer

Curly hair on a rainbow background, up close

Busy backgrounds hide small edge errors; pale pastel ones show them. Zoom in on the curls over the AI holographic gradient.

  • Backlit curls kept strand by strand
  • No grey fringe from the original street
  • The holographic gradient, cover-fitted behind the cut-out
Woman with big curly backlit hair on a city street (original)
Woman with big curly backlit hair on a city street (cut out)
OriginalCut out
Woman with big curly backlit hair on a city street — cut out with Kenerate Cutout HD. The checkerboard is transparent.

How it works

How it works in the app

  1. Step 1

    Add your image

    Open Remove & Erase and drop in a photo — products, people and pets all work.

  2. Step 2

    Choose what should happen

    Pick Cutout for a fast transparent PNG, HD for hair and fur, Pick for one object or Erase to remove something.

  3. Step 3

    Click Remove background

    Press the button and the cut-out lands in your results in seconds.

  4. Step 4

    Compare and download the PNG

    Drag the slider to compare, add a new background if you like, then download the transparent PNG.

Kenerate AI Remove and Erase tool with a sneaker photo loaded as the input image

Open Remove & Erase and drop in a photo — products, people and pets all work.

1 / 4 · Add your image

FAQ

Rainbow background questions

How do I make a rainbow background?

Download one of the rainbow gradient PNGs on this page, or open Kenerate's Image Studio, pick Qwen Image 3.0, choose 9:16, 16:9 or 1:1 and list the colours in order, for example “pastel rainbow over clouds, no text”. Qwen Image 3.0 is on the free plan and uses 9 credits per image.

Link to this answer

What are the hex codes for the rainbow colours?

Using the CSS named colours: red #FF0000, orange #FFA500, yellow #FFFF00, green #008000, blue #0000FF, indigo #4B0082 and violet #EE82EE. These are the stops in the rainbow gradient and stripes PNGs here.

Link to this answer

What are the hex codes for a pastel rainbow?

The pastel rainbow PNG here uses light pink #FFB6C1, peach puff #FFDAB9, lemon chiffon #FFFACD, pale green #98FB98, light sky blue #87CEFA and plum #DDA0DD, all CSS named colours.

Link to this answer

How do I make a rainbow gradient in CSS?

Use linear-gradient with the colours in order, for example linear-gradient(to right, #FF0000, #FFA500, #FFFF00, #008000, #0000FF, #4B0082, #EE82EE). The browser spaces the stops evenly, which is how the gradient PNGs here were drawn.

Link to this answer

How do I put a photo on a rainbow background?

Download a rainbow PNG from this page, cut your photo out with Cutout HD in Kenerate's background remover, then upload the rainbow under “Add new background” → Photos and download the PNG. Cutout HD uses 3 credits per photo; new accounts get 25 free credits.

Link to this answer

Are these rainbow backgrounds free to download?

Yes. The 9 rainbow gradient PNGs and the 8 AI rainbow backgrounds on this page are free to download and use. Making new AI backgrounds uses credits.

Link to this answer

What text colour works on a rainbow background?

Neither black nor white works on every band: black fails on blue and indigo, white fails on yellow and orange. Put text on a solid or semi-transparent panel, or use the pastel rainbow, where black text passes on every stop.

Link to this answer

How many colours are in a rainbow?

Seven by tradition (red, orange, yellow, green, blue, indigo, violet), a split Isaac Newton chose; a real rainbow is a continuous spectrum. Many designs use six bands and drop indigo.

Link to this answer

In depth

Rainbow colours, gradients and text

Why seven colours, how the gradient PNGs were drawn and checked, and what text colour works on a rainbow — with sources.

Seven colours, or six?

A real rainbow is a continuous spectrum; the seven named bands (red, orange, yellow, green, blue, indigo, violet) come from Isaac Newton, who chose seven to match the notes of a musical scale [1]. Many designs drop indigo and use six bands. The downloads here keep all seven, using the CSS named colours with those names [2].

By Last updated and reviewed

Written by the Kenerate team. The AI backgrounds are real Qwen Image 3.0 and Seedream 5.0 Pro outputs; the gradient PNGs were drawn from the listed hex codes and checked pixel by pixel; the photo examples are real Cutout HD cut-outs.

Sources: W3C — CSS Color Module Level 4, named colours · MDN — linear-gradient() · W3C — WCAG 2.2, Contrast (Minimum)

Put your photo on a rainbow

Upload a photo, cut it out, add a rainbow behind it, download. Free credits on sign-up.

Tried it? Tell us how it went