Color
Gradient
Gradient is a background where two or more colors flow smoothly into each other with no hard edge, adding depth to a flat color.
Definition
A gradient is a background where two or more colors flow into each other with no hard edge between them. Think of one color slowly bleeding into the next, like a sunset fading from orange to pink. To build one you decide two things. First is the angle, which sets the direction the color travels (top to bottom, or diagonal). Second are the color stops, which mark where each color takes over and how much space it gets. Two stops give you a simple two-color blend; add several and you get a rainbow-like sweep that links many colors in a row. Gradients show up wherever a flat, single color feels a little lifeless: big hero backgrounds, buttons, the surface of a card. Any time you want to add depth and energy to a plain block of color, a gradient is the tool you reach for.
Why does it matter?
A solid color is clean, but it can also read as flat and a bit dull. Because a gradient shifts color across the surface, it adds a subtle sense of depth and motion that makes the exact same layout look more polished. The effect pays off most in the two places you most want to catch the eye: the hero section a visitor sees first, and the primary button you want them to click. A gradient lets you transform the feel of a screen with very little effort. That said, it is also one of the easiest elements to get wrong. Used well it looks refined; used carelessly it looks cheap fast. Mix too many colors, or crank the contrast too high, and the screen turns busy in a hurry. So keep it restrained: the quieter and more subtle the blend, the more sophisticated it tends to look. With gradients, restraint beats flashiness every time.
Common mistakes
- Blending two colors that are far apart in brightness. Put a very light color right next to a very dark one and a muddy gray band appears in the middle, which looks dirty. Keep the two colors close in brightness and the transition stays smooth.
- Forcing together colors that sit far apart on the color wheel. Blend red straight into green, for example, and the middle turns a murky, swamp-water brown. Link colors that are neighbors on the wheel and even the in-between shades stay clean and natural.
- Making the gradient too intense and flashy. When the colors swirl too strongly, the text on top becomes hard to read and the whole screen feels scattered, so the message you actually wanted to send gets buried.
Practical tips
- Match the two colors in brightness and pick neighbors on the color wheel. Blending adjacent colors at a similar brightness avoids that muddy middle band and gives you a natural, stable result almost every time.
- The more subtle it is, the more refined it looks. Rather than pushing the two colors far apart, let the color shift only slightly. The background stops shouting, the flatness disappears, and the whole thing reads as more finished.
- When you place text over a gradient, check contrast against both the lightest and the darkest point of the blend. Since the background color changes across the surface, confirm the text stays crisp everywhere so it never quietly vanishes over one stretch of the gradient.