Gradient #673AB7 to #8BC34A
A smooth gradient transitioning from #673AB7 to #8BC34A. Copy the CSS code below to use this gradient in your projects.
Color Stops
Start Color
#673AB7
rgb(103, 58, 183)
hsl(262, 52%, 47%)
End Color
#8BC34A
rgb(139, 195, 74)
hsl(88, 50%, 53%)
CSS Gradient Code
Linear (135deg)
background: linear-gradient(135deg, #673AB7, #8BC34A);
Horizontal
background: linear-gradient(to right, #673AB7, #8BC34A);
Radial
background: radial-gradient(circle, #673AB7, #8BC34A);
Tailwind CSS Classes
Tailwind
bg-gradient-to-r from-[#673AB7] to-[#8BC34A]
Direction Variants
Horizontal
Vertical
Diagonal
Corner
Frequently Asked Questions
How to create a gradient from #673AB7 to #8BC34A?▾
Use the CSS property: linear-gradient(135deg, #673AB7, #8BC34A). 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, #673AB7, #8BC34A);
How do I use this gradient in Tailwind CSS?▾
In Tailwind CSS, use the utility classes: "bg-gradient-to-r from-[#673AB7] to-[#8BC34A]". The from- and to- classes set the gradient stops. Change bg-gradient-to-r to bg-gradient-to-br for a diagonal direction.