/* https://grabient.com/_gBxgEXggGgArgDtgAggPngKLgFNgasgaAhKMiT09vofG?style=linearGradient&steps=34&angle=15 */
background: linear-gradient(15deg, #3a2dff 0.000%, #3c34ff 3.030%, #3f3bff 6.061%, #4143ff 9.091%, #444cff 12.121%, #4756ff 15.152%, #4a60ff 18.182%, #4c6aff 21.212%, #4e74ff 24.242%, #4f7eff 27.273%, #5087ff 30.303%, #5191ff 33.333%, #5199ff 36.364%, #50a1ff 39.394%, #4fa8ff 42.424%, #4eafff 45.455%, #4cb4ff 48.485%, #4ab8ff 51.515%, #47bbff 54.545%, #45bdff 57.576%, #42beff 60.606%, #3fbdff 63.636%, #3cbbff 66.667%, #3ab8ff 69.697%, #38b4ff 72.727%, #36aeff 75.758%, #35a8ff 78.788%, #34a1ff 81.818%, #3499ff 84.848%, #3490ff 87.879%, #3587ff 90.909%, #367dff 93.939%, #3873ff 96.970%, #3a69ff 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gBxgEXggGgArgDtgAggPngKLgFNgasgaAhKMiT09vofG?style=linearGradient&steps=34&angle=15 -->
<defs>
<linearGradient id="gradient" x1="0.371" y1="0.983" x2="0.629" y2="0.017">
<stop offset="0.000" stop-color="#3a2dff" /><stop offset="0.030" stop-color="#3c34ff" /><stop offset="0.061" stop-color="#3f3bff" /><stop offset="0.091" stop-color="#4143ff" /><stop offset="0.121" stop-color="#444cff" /><stop offset="0.152" stop-color="#4756ff" /><stop offset="0.182" stop-color="#4a60ff" /><stop offset="0.212" stop-color="#4c6aff" /><stop offset="0.242" stop-color="#4e74ff" /><stop offset="0.273" stop-color="#4f7eff" /><stop offset="0.303" stop-color="#5087ff" /><stop offset="0.333" stop-color="#5191ff" /><stop offset="0.364" stop-color="#5199ff" /><stop offset="0.394" stop-color="#50a1ff" /><stop offset="0.424" stop-color="#4fa8ff" /><stop offset="0.455" stop-color="#4eafff" /><stop offset="0.485" stop-color="#4cb4ff" /><stop offset="0.515" stop-color="#4ab8ff" /><stop offset="0.545" stop-color="#47bbff" /><stop offset="0.576" stop-color="#45bdff" /><stop offset="0.606" stop-color="#42beff" /><stop offset="0.636" stop-color="#3fbdff" /><stop offset="0.667" stop-color="#3cbbff" /><stop offset="0.697" stop-color="#3ab8ff" /><stop offset="0.727" stop-color="#38b4ff" /><stop offset="0.758" stop-color="#36aeff" /><stop offset="0.788" stop-color="#35a8ff" /><stop offset="0.818" stop-color="#34a1ff" /><stop offset="0.848" stop-color="#3499ff" /><stop offset="0.879" stop-color="#3490ff" /><stop offset="0.909" stop-color="#3587ff" /><stop offset="0.939" stop-color="#367dff" /><stop offset="0.970" stop-color="#3873ff" /><stop offset="1.000" stop-color="#3a69ff" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#3a2dff", "#3c34ff", "#3f3bff", "#4143ff", "#444cff", "#4756ff", "#4a60ff", "#4c6aff", "#4e74ff", "#4f7eff", "#5087ff", "#5191ff", "#5199ff", "#50a1ff", "#4fa8ff", "#4eafff", "#4cb4ff", "#4ab8ff", "#47bbff", "#45bdff", "#42beff", "#3fbdff", "#3cbbff", "#3ab8ff", "#38b4ff", "#36aeff", "#35a8ff", "#34a1ff", "#3499ff", "#3490ff", "#3587ff", "#367dff", "#3873ff", "#3a69ff"]
// https://grabient.com/_gBxgEXggGgArgDtgAggPngKLgFNgasgaAhKMiT09vofG?style=linearGradient&steps=34&angle=15
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 34.0;
const float ANGLE = 15.0;
vec3 palette(float t) {
vec3 a = vec3(0.260, 0.426, 2.201);
vec3 b = vec3(0.058, 0.318, 0.043);
vec3 c = vec3(0.999, 0.651, 0.333);
vec3 d = vec3(1.650, 1.606, 4.690);
return a + b * cos(6.283185 * (c * t + d));
}
// N stops sampled from the palette, blended like the CSS gradient
vec3 stops(float t) {
float n = STEPS - 1.0;
float x = clamp(t, 0.0, 1.0) * n;
return mix(palette(floor(x) / n), palette(min(floor(x) + 1.0, n) / n), fract(x));
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 p = fragCoord - 0.5 * iResolution.xy;
// CSS angle: 0 = up, clockwise; span = CSS gradient-line length
vec2 dir = vec2(sin(radians(ANGLE)), cos(radians(ANGLE)));
float len = abs(iResolution.x * dir.x) + abs(iResolution.y * dir.y);
float t = dot(p, dir) / len + 0.5;
fragColor = vec4(stops(t), 1.0);
}
[
[0.260, 0.426, 2.201],
[0.058, 0.318, 0.043],
[0.999, 0.651, 0.333],
[1.650, 1.606, 4.690]
]