/* https://grabient.com/_gF0gIDgMIgE-gEof4Of3Jf6OgDygVgf3ifxH?style=radialGradient&steps=13&angle=90 */
background: radial-gradient(circle at 50% 50%, #253a4c 0.000%, #384052 8.333%, #4f475a 16.667%, #675163 25.000%, #7e5d6e 33.333%, #936a7a 41.667%, #a37887 50.000%, #ad8796 58.333%, #b095a5 66.667%, #aca3b5 75.000%, #a1b0c5 83.333%, #91bbd5 91.667%, #7cc4e5 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gF0gIDgMIgE-gEof4Of3Jf6OgDygVgf3ifxH?style=radialGradient&steps=13&angle=90 -->
<defs>
<radialGradient id="radial" gradientUnits="userSpaceOnUse" cx="400.000" cy="200.000" r="447.214">
<stop offset="0.000" stop-color="#253a4c" /><stop offset="0.083" stop-color="#384052" /><stop offset="0.167" stop-color="#4f475a" /><stop offset="0.250" stop-color="#675163" /><stop offset="0.333" stop-color="#7e5d6e" /><stop offset="0.417" stop-color="#936a7a" /><stop offset="0.500" stop-color="#a37887" /><stop offset="0.583" stop-color="#ad8796" /><stop offset="0.667" stop-color="#b095a5" /><stop offset="0.750" stop-color="#aca3b5" /><stop offset="0.833" stop-color="#a1b0c5" /><stop offset="0.917" stop-color="#91bbd5" /><stop offset="1.000" stop-color="#7cc4e5" />
</radialGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#radial)" />
</svg>
["#253a4c", "#384052", "#4f475a", "#675163", "#7e5d6e", "#936a7a", "#a37887", "#ad8796", "#b095a5", "#aca3b5", "#a1b0c5", "#91bbd5", "#7cc4e5"]
// https://grabient.com/_gF0gIDgMIgE-gEof4Of3Jf6OgDygVgf3ifxH?style=radialGradient&steps=13&angle=90
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 13.0;
vec3 palette(float t) {
vec3 a = vec3(0.372, 0.515, 0.776);
vec3 b = vec3(0.318, 0.296, -0.498);
vec3 c = vec3(-0.567, -0.370, 0.242);
vec3 d = vec3(1.376, -0.542, -0.953);
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;
// circle to the farthest corner (CSS default)
float t = length(p) / length(0.5 * iResolution.xy);
fragColor = vec4(stops(t), 1.0);
}
[
[0.372, 0.515, 0.776],
[0.318, 0.296, -0.498],
[-0.567, -0.370, 0.242],
[1.376, -0.542, -0.953]
]