CSS Mesh from Palette
Paste a 4-6 color palette and get a ready-to-use CSS mesh gradient. Starts from your colors, not from dragging points.
Mesh Gradients Without the Dragging
The existing Mesh Gradient Generator on this site is excellent if you want to design a mesh gradient from scratch by placing color points on a canvas and dragging them into position. The workflow is exploratory and creative, which is exactly right when you do not yet know what colors you want. The opposite workflow is also common: you already have a brand palette and you want a mesh gradient that uses those exact colors, ideally arranged in a way that looks balanced without having to drag points around to find a layout that works. CSS Mesh from Palette is the tool for that workflow. Paste or type 4 to 6 brand colors, pick a layout, and the tool emits a multi-radial-gradient CSS declaration that uses your exact colors in a perceptually balanced arrangement. The layouts are inspired by the gradient hero sections on Stripe, Linear, Vercel, and similar landing pages; six layout options cover the common shapes and the output is production-ready CSS that you can paste into a stylesheet without modification.
How the Tool Arranges Your Colors
Four layout options give different visual feels. Corners places one color in each corner with a soft falloff, which produces the classic mesh look. Diagonal stripes places colors along the main diagonal, which produces a directional gradient with mesh-style softness. Orbit places one anchor color in the center and the others around it, which is good for hero sections with a focal point. Cluster places colors close together in one region with a falloff outward, which produces a moody backgrounded glow. For each layout, the tool computes the radial-gradient stops in OKLCH so the falloff between colors is perceptually smooth rather than RGB-muddy. The aspect ratio toggle controls whether the output is sized for a wide hero, a square panel, or a tall mobile screen, which affects where the gradient peaks sit relative to the viewport. The CSS output uses standard background-image syntax with a stacked radial-gradient declaration, which renders in every browser that ships CSS gradient support, covering 99 percent of users.
Pairing With Other Tools in the Suite
The natural upstream is one of the palette generators on this site. Run the Palette Generator with a hue rule of your choice, or extract a palette from a brand image with Palette from Image, then paste the resulting four or five colors into the mesh tool. The natural downstream is the Mesh Gradient Generator if you want to manually fine-tune the layout the palette tool produced. The Gradient Stop Optimizer is useful as a follow-up if you want to add internal stops to any of the radial gradients in the mesh, though the mesh is usually smooth enough out of the box. The output is pure CSS, no images or SVG, which means it scales infinitely, loads instantly, and adapts to any viewport size without re-rendering. For a fully accessible hero section, layer a noise overlay using the existing Noise Overlay Generator on top of the mesh to mask any banding visible on OLED screens.
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools