ColorPal

Gradient #2196F3 to #E91E63

A smooth gradient transitioning from #2196F3 to #E91E63. Copy the CSS code below to use this gradient in your projects.

Color Stops

Start Color

#2196F3

rgb(33, 150, 243)

hsl(207, 90%, 54%)

End Color

#E91E63

rgb(233, 30, 99)

hsl(340, 82%, 52%)

CSS Gradient Code

Linear (135deg)

background: linear-gradient(135deg, #2196F3, #E91E63);

Horizontal

background: linear-gradient(to right, #2196F3, #E91E63);

Radial

background: radial-gradient(circle, #2196F3, #E91E63);

Tailwind CSS Classes

Tailwind

bg-gradient-to-r from-[#2196F3] to-[#E91E63]

Direction Variants

Horizontal

Vertical

Diagonal

Corner

Frequently Asked Questions

How to create a gradient from #2196F3 to #E91E63?

Use the CSS property: linear-gradient(135deg, #2196F3, #E91E63). 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, #2196F3, #E91E63);

How do I use this gradient in Tailwind CSS?

In Tailwind CSS, use the utility classes: "bg-gradient-to-r from-[#2196F3] to-[#E91E63]". The from- and to- classes set the gradient stops. Change bg-gradient-to-r to bg-gradient-to-br for a diagonal direction.

Related Resources