/* https://grabient.com/_gHggImgJsgGkgFUgEigH0gHggHCgAAgBGgBk?style=radialGradient&steps=12&angle=45 */
background: radial-gradient(circle at 50% 50%, #e5dbda 0.000%, #e1cecd 9.091%, #d4bcbd 18.182%, #c1a7ab 27.273%, #a78f98 36.364%, #8a7885 45.455%, #6b6274 54.545%, #4e4f66 63.636%, #34415c 72.727%, #203856 81.818%, #143654 90.909%, #0f3a58 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gHggImgJsgGkgFUgEigH0gHggHCgAAgBGgBk?style=radialGradient&steps=12&angle=45 -->
<defs>
<radialGradient id="radial" gradientUnits="userSpaceOnUse" cx="400.000" cy="200.000" r="447.214">
<stop offset="0.000" stop-color="#e5dbda" /><stop offset="0.091" stop-color="#e1cecd" /><stop offset="0.182" stop-color="#d4bcbd" /><stop offset="0.273" stop-color="#c1a7ab" /><stop offset="0.364" stop-color="#a78f98" /><stop offset="0.455" stop-color="#8a7885" /><stop offset="0.545" stop-color="#6b6274" /><stop offset="0.636" stop-color="#4e4f66" /><stop offset="0.727" stop-color="#34415c" /><stop offset="0.818" stop-color="#203856" /><stop offset="0.909" stop-color="#143654" /><stop offset="1.000" stop-color="#0f3a58" />
</radialGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#radial)" />
</svg>
["#e5dbda", "#e1cecd", "#d4bcbd", "#c1a7ab", "#a78f98", "#8a7885", "#6b6274", "#4e4f66", "#34415c", "#203856", "#143654", "#0f3a58"]
// https://grabient.com/_gHggImgJsgGkgFUgEigH0gHggHCgAAgBGgBk?style=radialGradient&steps=12&angle=45
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 12.0;
vec3 palette(float t) {
vec3 a = vec3(0.480, 0.550, 0.620);
vec3 b = vec3(0.420, 0.340, 0.290);
vec3 c = vec3(0.500, 0.480, 0.450);
vec3 d = vec3(0.000, 0.070, 0.100);
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.480, 0.550, 0.620],
[0.420, 0.340, 0.290],
[0.500, 0.480, 0.450],
[0.000, 0.070, 0.100]
]