Gradient #3F51B5 to #4CAF50
A smooth gradient transitioning from #3F51B5 to #4CAF50. Copy the CSS code below to use this gradient in your projects.
Color Stops
Start Color
#3F51B5
rgb(63, 81, 181)
hsl(231, 48%, 48%)
End Color
#4CAF50
rgb(76, 175, 80)
hsl(122, 39%, 49%)
CSS Gradient Code
Linear (135deg)
background: linear-gradient(135deg, #3F51B5, #4CAF50);
Horizontal
background: linear-gradient(to right, #3F51B5, #4CAF50);
Radial
background: radial-gradient(circle, #3F51B5, #4CAF50);
Tailwind CSS Classes
Tailwind
bg-gradient-to-r from-[#3F51B5] to-[#4CAF50]
Direction Variants
Horizontal
Vertical
Diagonal
Corner
Frequently Asked Questions
How to create a gradient from #3F51B5 to #4CAF50?▾
Use the CSS property: linear-gradient(135deg, #3F51B5, #4CAF50). Apply it to the background property of any element. You can change the angle (135deg) to adjust the gradient direction.
What CSS property makes a gradient?▾
Gradients are created using the CSS background or background-image property with gradient functions like linear-gradient(), radial-gradient(), or conic-gradient(). For example: background: linear-gradient(to right, #3F51B5, #4CAF50);
How do I use this gradient in Tailwind CSS?▾
In Tailwind CSS, use the utility classes: "bg-gradient-to-r from-[#3F51B5] to-[#4CAF50]". The from- and to- classes set the gradient stops. Change bg-gradient-to-r to bg-gradient-to-br for a diagonal direction.