# Rainbow background: free gradient PNGs, hex codes and AI designs > 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. URL: https://kenerateai.com/rainbow-background Publisher: Kenerate AI (https://kenerateai.com) Last updated: 15 November 2026 ## 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 ## Steps 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. Choose the shape — 9:16 for a phone or Stories, 16:9 for a desktop or slides, 1:1 for a square post. 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”. 4. Generate and download — Most images arrive in under a minute. Download it, or run it through the image upscaler for 4K. ## In depth ### 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. References: [1] Encyclopaedia Britannica — Rainbow: https://www.britannica.com/science/rainbow-atmospheric-phenomenon [2] W3C — CSS Color Module Level 4: named colours: https://www.w3.org/TR/css-color-4/#named-colors [3] MDN — linear-gradient(): https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/linear-gradient [4] W3C — WCAG 2.2, Success Criterion 1.4.3 Contrast (Minimum): https://www.w3.org/TR/WCAG22/#contrast-minimum ## FAQ Q: How do I make a rainbow background? A: 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. Q: What are the hex codes for the rainbow colours? A: 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. Q: What are the hex codes for a pastel rainbow? A: 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. Q: How do I make a rainbow gradient in CSS? A: 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. Q: How do I put a photo on a rainbow background? A: 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. Q: Are these rainbow backgrounds free to download? A: 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. Q: What text colour works on a rainbow background? A: 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. Q: How many colours are in a rainbow? A: 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. ## Related pages - Pink background: https://kenerateai.com/pink-background - Blue background: https://kenerateai.com/blue-background - Light blue background: https://kenerateai.com/light-blue-background - Navy blue background: https://kenerateai.com/navy-blue-background - Red background: https://kenerateai.com/red-background - Orange background: https://kenerateai.com/orange-background - Purple background: https://kenerateai.com/purple-background - Green background: https://kenerateai.com/green-background - Teal background: https://kenerateai.com/teal-background - Gold background: https://kenerateai.com/gold-background - Yellow background: https://kenerateai.com/yellow-background - Beige background: https://kenerateai.com/beige-background - Brown background: https://kenerateai.com/brown-background - Gray background: https://kenerateai.com/gray-background - Black background: https://kenerateai.com/black-background - White background: https://kenerateai.com/white-background - Free AI background remover: https://kenerateai.com/free-ai-background-remover - Transparent background maker: https://kenerateai.com/transparent-background-maker - Free PNG maker: https://kenerateai.com/png-maker - Remove white background: https://kenerateai.com/remove-white-background - Green screen remover: https://kenerateai.com/green-screen-remover - Transparent logo: https://kenerateai.com/remove-background-from-logo - Signature PNG: https://kenerateai.com/remove-background-from-signature - Remove shadow: https://kenerateai.com/remove-shadow-from-photo - Remove glare: https://kenerateai.com/remove-glare-from-photo - Remove text: https://kenerateai.com/remove-text-from-image - Make an image transparent: https://kenerateai.com/how-to-make-an-image-transparent - Remove background in Canva: https://kenerateai.com/how-to-remove-background-in-canva - Remove background in Photoshop: https://kenerateai.com/how-to-remove-background-in-photoshop - Remove background in GIMP: https://kenerateai.com/how-to-remove-background-in-gimp - Remove background on iPhone: https://kenerateai.com/how-to-remove-background-on-iphone - Remove a person from a photo: https://kenerateai.com/how-to-remove-a-person-from-a-photo - Rainbow background: https://kenerateai.com/rainbow-background - All background remover alternatives: https://kenerateai.com/background-remover-alternatives - remove.bg alternative: https://kenerateai.com/remove-bg-alternative - Photoroom alternative: https://kenerateai.com/photoroom-alternative - Pixelcut alternative: https://kenerateai.com/pixelcut-alternative - Canva BG Remover alternative: https://kenerateai.com/canva-background-remover-alternative - Adobe Express alternative: https://kenerateai.com/adobe-express-background-remover-alternative - erase.bg alternative: https://kenerateai.com/erase-bg-alternative - removal.ai alternative: https://kenerateai.com/removal-ai-alternative - Picsart alternative: https://kenerateai.com/picsart-background-remover-alternative - Pixlr alternative: https://kenerateai.com/pixlr-background-remover-alternative - Clipping Magic alternative: https://kenerateai.com/clipping-magic-alternative - PhotoScissors alternative: https://kenerateai.com/photoscissors-alternative - PicWish alternative: https://kenerateai.com/picwish-alternative - Slazzer alternative: https://kenerateai.com/slazzer-alternative - Fotor alternative: https://kenerateai.com/fotor-background-remover-alternative ## Sources - W3C — CSS Color Module Level 4, named colours: https://www.w3.org/TR/css-color-4/#named-colors - MDN — linear-gradient(): https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/linear-gradient - W3C — WCAG 2.2, Contrast (Minimum): https://www.w3.org/TR/WCAG22/#contrast-minimum - Encyclopaedia Britannica — Rainbow: https://www.britannica.com/science/rainbow-atmospheric-phenomenon