5 min read
2026-02-28
When transitioning between complementary colors (red → green), the middle appears dirty gray. Add an intermediate color.
In the HSL model it is easy to create a harmonious gradient - change only the Hue, maintaining saturation and brightness.
The color to transparent `rgba(0,0,0,0)` gradient creates a fading effect - ideal for photo overlays.
CSS allows you to stack multiple gradients on top of each other, separated by commas, to create complex effects.
Use `background-size: 200%` and `background-position` animation to create a moving gradient.
Gradients may look different on monitors with different color gamuts - check on multiple devices.
See also: Palette generator, Color converter