Black to white, left to right
- Gradient type
- Linear
- Angle
- 90
- Start colour
- #000000
- Colour stops
- Two colours
- End colour
- #ffffff
Result CSS: background: linear-gradient(90deg, #000000 0%, #ffffff 100%);
Colour at 50%: #808080
End-colour contrast ratio: 21
Colour stops: 2
- Stops: #000000 0%, #ffffff 100%.
- Each colour channel is interpolated linearly in sRGB between neighbouring stops.
- Midpoint (50%) = #808080.
- End-colour contrast = (1 + 0.05) ÷ (0 + 0.05) = 21:1.
The halfway colour is mid grey #808080, and the two ends have the maximum WCAG contrast of 21:1.