A gradient is a smooth transition between two or more colors. Gradients add depth, dimension, and visual interest to web designs, UI elements, and illustrations.
Select two colors, choose a gradient angle, and instantly see the result on Canvas. Copy the CSS code to use in your project.
Frequently Asked Questions
Q: What is the difference between linear and radial gradients?
What is the difference between linear and radial gradients? Linear gradients transition along a straight line, while radial gradients radiate from a central point.
Q: Can I use gradients in CSS?
Can I use gradients in CSS? Yes, use the background-image property with linear-gradient or radial-gradient functions.
Q: Can I create transparent gradients?
Can I create transparent gradients? Yes, use the opacity slider or manually edit the copied CSS to use rgba() or hsla() color values. Gradients with transparency are great for overlays and glass effects.
Q: How do I make the gradient responsive?
How do I make the gradient responsive? The generated CSS works at any container size. For full-screen gradients, apply the gradient to the body or a wrapper element. Use background-size: cover for best results.
Q: What is the difference between linear and radial gradients?
What is the difference between linear and radial gradients? Linear gradients transition along a straight line, perfect for headers and banners. Radial gradients radiate from a center point, ideal for spotlight effects and circular elements.
CSS Named Colors & Color Psychology
The web has 148 named colors built into CSS, from Coral to Goldenrod. Beyond the code, color psychology shapes how users feel about interfaces — warm tones energize, cool tones calm, and neutrals build trust. This palette mixes CSS classics with the psychology behind them.
Coral #FF7F50Warm and friendly — popular for CTAs in lifestyle brands
Tomato #FF6347Energetic red-orange, great for urgent accents
Goldenrod #DAA520Earthy gold associated with quality and heritage
Teal #008080Balanced blue-green — calm, trustworthy, professional
Indigo #4B0082Deep violet tied to wisdom and premium brands
Crimson #DC143CBold red for passion, alerts, and strong emphasis
SlateBlue #6A5ACDSoft purple-blue common in SaaS dashboards
ForestGreen #228B22Nature and growth — the color of eco and finance brands
HotPink #FF69B4Playful and bold, the signature of youth-oriented design
Navy #000080Authority and stability — the suit-and-tie of colors
Q: What are CSS named colors?
What are CSS named colors? CSS defines 148 named colors like Coral and Goldenrod that work in any stylesheet without hex codes. They are great for prototyping but designers usually switch to hex or HSL for precise brand colors.
Q: How does color psychology affect design?
How does color psychology affect design? Warm colors (red, orange, yellow) create energy and urgency; cool colors (blue, green, teal) create calm and trust. CTAs often use warm tones while financial and health brands prefer blues and greens.