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.


- Red #FF0000 → violet #EE82EE
- 9 gradient PNGs
- 8 AI backgrounds
- Your photo on a rainbow in about 5 s
Updated by the Kenerate AI team
Made with Kenerate
On this page
Quick answer
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.
- Pastel rainbow sky — phone 9:16, 1080 × 1920 JPG (Qwen Image 3.0)
- Holographic pastel gradient — desktop 16:9, 1920 × 1080 JPG (Qwen Image 3.0)
- Rainbow glitter — phone 9:16, 1080 × 1920 JPG (Seedream 5.0 Pro)
- Rainbow bokeh — desktop 16:9, 1920 × 1080 JPG (Qwen Image 3.0)
- Rainbow marbled paint — square 1:1, 1080 × 1080 JPG (Seedream 5.0 Pro)
- Rainbow silk ribbons — desktop 16:9, 1920 × 1080 JPG (Seedream 5.0 Pro)
- Boho rainbow — phone 9:16, 1080 × 1920 JPG (Qwen Image 3.0)
- Rainbow sprinkles — square 1:1, 1080 × 1080 JPG (Qwen Image 3.0)
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.
| Design | Colours in order | Download PNG |
|---|---|---|
| Rainbow gradient | red #FF0000 → orange #FFA500 → yellow #FFFF00 → green #008000 → blue #0000FF → indigo #4B0082 → violet #EE82EE | 1920 × 1080 · 1080 × 1920 · 1080 × 1080 |
| Rainbow stripes | red #FF0000 → orange #FFA500 → yellow #FFFF00 → green #008000 → blue #0000FF → indigo #4B0082 → violet #EE82EE | 1920 × 1080 · 1080 × 1920 · 1080 × 1080 |
| Pastel rainbow gradient | light pink #FFB6C1 → peach puff #FFDAB9 → lemon chiffon #FFFACD → pale green #98FB98 → light sky blue #87CEFA → plum #DDA0DD | 1920 × 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.

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.
OriginalCut out
Office headshot → pastel rainbow
Cutout HD, then the pastel rainbow PNG uploaded under Photos.
Kenerate Cutout HD
Try this photo
OriginalCut out
City street → AI holographic gradient
The holographic pastel background from this page.
Kenerate Cutout HD
Try this photo
OriginalCut out
Cafe portrait → rainbow stripes
The stripes PNG: seven flat bands behind a dark sweater.
Kenerate Cutout HD
Try this photo
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
Step 1: Download a rainbow background
Save one of the gradient PNGs or AI rainbow backgrounds from this page in the size you need.
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.
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.
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
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.
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.
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.
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.
| Rainbow gradient PNG | AI rainbow background | Your photo on a rainbow | |
|---|---|---|---|
| Best for | Slides, banners, a base for your own design | Phone and desktop backgrounds, posts | Headshots, pets, profile pictures |
| Exact hex colours | Yes | No | Yes |
| Sizes | 1920×1080, 1080×1920, 1080×1080 | 9:16, 16:9, 1:1 and more | The photo's own size |
| Time | Instant download | Under a minute | About 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


How it works
How it works in the app
Step 1
Add your image
Open Remove & Erase and drop in a photo — products, people and pets all work.
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.
Step 3
Click Remove background
Press the button and the cut-out lands in your results in seconds.
Step 4
Compare and download the PNG
Drag the slider to compare, add a new background if you like, then download the transparent PNG.
See it in the app

Open Remove & Erase and drop in a photo — products, people and pets all work.
FAQ
Rainbow background questions
8 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 answerWhat 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 answerWhat 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 answerHow 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 answerHow 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 answerAre 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 answerWhat 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 answerHow 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 answerIn 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.
On this page
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].
How the gradient PNGs were made
Each smooth PNG is a linear gradient with evenly spaced stops, the same thing CSS linear-gradient() draws when stops have no positions [3]. The stripes PNG uses one flat band per colour instead, so every band is exactly its hex value. After saving, the pixel at each stop was read back to check the colour.
- Rainbow gradient, left → right: #FF0000, #FFA500, #FFFF00, #008000, #0000FF, #4B0082, #EE82EE
- Rainbow stripes, top → bottom: the same seven colours, one band each
- Pastel rainbow, left → right: #FFB6C1, #FFDAB9, #FFFACD, #98FB98, #87CEFA, #DDA0DD
Text on a rainbow
WCAG 2.2 asks for 4.5:1 contrast for normal text [4], and no single colour clears that on all seven bands: black on blue #0000FF is 2.44:1 and on indigo 1.62:1, white on yellow is 1.07:1 and on orange 1.97:1. Put text on a solid panel, or use the pastel rainbow, where black text is at least 10.15:1 on every stop.

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














