Gradient
A gradual transition between two or more colours.
See it on the 3D treeGoing deeper
Common types are linear, radial and conic (angular), each defined by colour stops along a path. The colour space used for interpolation changes the middle: blending distant hues in sRGB can pass through dull, greyish colours. Perceptual spaces or an extra stop can keep the transition lively and even.
Why it matters
Gradients add depth, direction and atmosphere, but they change the contrast behind anything placed on top.
In practice
White text sits on a purple-to-yellow banner, so you check the lightest area and darken that end.
Common mistake
Testing text contrast at one point of a gradient instead of at its worst point.
Connected terms
- Analogous ColoursNeighbouring hues tend to blend into clean gradients.
- BandingSubtle gradients can break into visible steps.
- Mesh GradientA mesh gradient blends colours across a grid rather than along one path.
- OKLCHInterpolating in OKLCH often gives more even-looking transitions.
- DepthShading with gradients can suggest volume and light.