CSS stop-color Property
Description
The stop-color property defines the color used at a particular color stop inside an SVG gradient (for example within a stop-color controls the color component only — it does not determine the stop’s position along the gradient vector or any spacing behavior.
When rendered, the color produced by a stop is combined with its alpha component and with surrounding stops during interpolation. That alpha component is typically controlled separately, so stop-color is often used together with stop-opacity (or other opacity controls) to produce semi‑transparent gradient effects. The visual result depends on how the gradient interpolation algorithm blends the stop colors and alphas; differences in color spaces or interpolation modes can change how smooth or saturated the transitions appear.
You can set stop-color through SVG presentation attributes or via CSS rules targeted at the color property — allowing designs where gradient accents automatically follow text or theme colors.
From a practical and design standpoint, stop-color is useful for creating subtle shifts, bold banding, or complex multi-stop gradients. It is animatable as a color, so you can transition or animate stop colors to achieve dynamic gradient effects. When designing with multiple stops, consider performance (many animated stops can be costly to render) and perceptual issues (contrast against foreground content and how colors blend across stops), and aim for consistent color-space handling to keep interpolation predictable.
Definition
- Initial value
- black
- Applies to
- <stop> elements in <svg>
- Inherited
- no
- Computed value
- as specified
- Animatable
- yes
- JavaScript syntax
- object.style.stopColor
Syntax
stop-color = <color>
Values
- colorIndicates a color value.
- currentColorInherits the current text color from the SVG or parent element.
- inheritInherits the stop-color value from its parent element.
Example
Browser Support
The following information will show you the current browser support for the CSS stop-color property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
