Build a CSS linear gradient from two endpoint colours and a direction.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Endpoint RGB channels are linearly interpolated across the requested stops, which are emitted in a CSS linear-gradient. Each channel is rounded to an integer for hex output.
Color1: #FF6B35 Color2: #7B2FBE Direction: to right Steps: 5
CSS: linear-gradient(to right, #FF6B35, #DE5C57, #BD4D7A, #9C3E9C, #7B2FBE) Color Stops: 0%: #FF6B35 25%: #DE5C57 50%: #BD4D7A 75%: #9C3E9C 100%: #7B2FBE
Stylesheets create backgrounds, visualizations map values to endpoints, and mock-ups preview directional fills.