Tailwind Gradient Generator
Build a Tailwind CSS gradient with any colours and copy the classes.
Enter your values
Result
Tailwind classes
bg-gradient-to-br from-[#6366F1] to-[#EC4899]
- Plain CSS
- background-image: linear-gradient(to bottom right, #6366F1, #EC4899);
- Tailwind v4
- bg-linear-to-br from-[#6366F1] to-[#EC4899]Tailwind v4 renamed bg-gradient-* to bg-linear-*.
Square-bracket values like from-[#6366F1] are Tailwind arbitrary values, so any colour works without editing your Tailwind config.
Live preview
How to use Tailwind Gradient Generator
- Enter direction, from colour and middle colour.
- The result updates instantly as you type, with no button to press.
- Read the formula box to see how it was calculated, then copy the result.
Features
- Instant results
- Results update as you type, with no Calculate button and no page reload.
- Formula explained
- See exactly how the answer is worked out, so you can check it or learn the method.
- Private & free
- Everything runs in your browser. Nothing you enter is uploaded or stored.
Frequently asked questions
How does the Tailwind Gradient Generator work?
It uses this method: Square-bracket values like from-[#6366F1] are Tailwind arbitrary values, so any colour works without editing your Tailwind config.
Is this Tailwind Gradient Generator free?
Yes. It is 100% free, needs no sign-up and works on mobile and desktop. Your numbers never leave your device.
Free, no sign-up. Your files and numbers are processed in your browser and are not uploaded.