How to use it
Pick a style, shuffle until the shapes sit well, and copy the result. The colors are already yours.
- Check the palette in the bar at the top. Lock the colors you want to keep and press Generate to replace the rest, or press Edit to change it in the palette generator.
- Choose a style. Waves, steps and peaks stack layers against one edge. Blobs float, low poly covers the whole frame with triangles, and scatter fills it with circles.
- Set the number of layers or the density, then the curve or roughness. Low values are calm, high values are busy. For layered styles, choose the edge the layers grow from.
- Press Shuffle for a new arrangement of the same settings. Colors and sliders stay as they are.
- Under Colors, choose which palette color fills the background. Reverse order swaps which colors sit at the back and which at the front.
- Pick a size, read the text line if something will sit on top, then copy the SVG or CSS, or download a file.
How the background is made
Every picture starts from a seed, which is a plain whole number. The seed feeds a small random source that always gives the same sequence, and that sequence decides the position of every point. Change the colors and the arrangement stays. Change the seed and everything moves.
One palette color becomes the background. Unless you choose another, it is the lightest one. The rest are sorted by lightness, starting from the background's end, so the far layers blend in and the near ones stand out, like hills in haze. Low poly uses the same order as a diagonal sweep of shades across the triangles.
Waves are smooth curves through a few points per layer. Steps and peaks use the same points with flat or straight joins. Blobs are circles whose edge is pushed in and out, and scatter places circles one by one, skipping any spot that would overlap. The drawing is written at the size you chose, with numbers rounded to two decimals, so files stay small.
Keeping text readable
A background has several colors, so one contrast check is not enough. The line under the preview measures black and white text against every color in the picture and reports the worst result for the better ink. The ratio is rounded down, so 4.49 shows as 4.4:1. WCAG asks for 4.5:1 for body text and 3:1 for large text.
If the worst case fails, use colors closer together in lightness, or keep the layers to one edge and place the text over the plain part.
Questions
What does the seed do?
The seed is the number behind every random choice in the picture: where a wave rises, how big a blob is, which way a triangle leans. The same seed with the same settings always draws the same background. Shuffle picks a new seed, and the seed is part of the page address, so a copied link opens the exact picture you were looking at.
Where do the colors come from?
From the palette in the bar at the top, which every InstantPalette tool shares. Generate makes a new palette around the colors you lock, and Edit opens the palette in the generator.
What happens when I ask for more layers than I have colors?
The extra layers are mixes of neighboring palette colors, blended in OKLab so the steps between them look even. With fewer layers than colors, the tool picks palette colors spread across the range from light to dark. Nothing outside your palette is added.
Should I export SVG, CSS or PNG?
Use SVG for a website or a design file: it stays sharp at any size and the files are small. Use the CSS export when you would rather paste one rule than host a file. Use PNG for slides, social posts, phone wallpapers and anything that does not accept SVG.
How do I use the CSS export?
Paste the rule into your stylesheet and put the class name background on the element you want to fill. The drawing sits inside the rule as a percent-encoded data URI, so there is no extra file to upload. The rule also sets the background color, which shows while the page loads.
Can I put text on top of the background?
Check the line under the preview first. It compares black text and white text with every color in the picture, keeps the better one and shows its lowest contrast ratio, rounded down. At 4.5:1 or more, body text is readable anywhere on the picture. Below that, keep text on the plain background area or use a calmer set of colors.
Are the backgrounds free to use?
Yes, for personal and commercial work, with no account and no credit line. The shapes are calculated in your browser from your colors and a seed, so no stock art is involved and nothing is uploaded.