Rainbow evergreen to dark slate blue to burgundy gradient palette. linear swatch palette, 7 steps, 45 degrees. Hex codes: #19442b, #04414a, #143966, #3d2f6d, #642659, #702039, #572023. Tagged charcoal, brown, soft, neutral, warming, gentle, rainbow, dark, low-contrast, low-key, iso-luminant, ramp, hue-advancing, unclipped. Available as CSS, SVG and PNG.
/* https://grabient.com/_gDlgDDgEYgDUgBIgCYgMkgIYgM8gFkgAHgJu?style=linearSwatches&steps=7&angle=45 */
background: linear-gradient(45deg, #19442b 0.000%, #19442b 14.286%, #04414a calc(14.286% + 1px), #04414a 28.571%, #143966 calc(28.571% + 1px), #143966 42.857%, #3d2f6d calc(42.857% + 1px), #3d2f6d 57.143%, #642659 calc(57.143% + 1px), #642659 71.429%, #702039 calc(71.429% + 1px), #702039 85.714%, #572023 calc(85.714% + 1px) 100.000%);<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gDlgDDgEYgDUgBIgCYgMkgIYgM8gFkgAHgJu?style=linearSwatches&steps=7&angle=45 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M 416.228,816.228 L -216.228,183.772 L -130.513,98.058 L 501.942,730.513 Z" fill="#19442b" fill-opacity="1.000" /><path d="M 501.942,730.513 L -130.513,98.058 L -44.799,12.344 L 587.656,644.799 Z" fill="#04414a" fill-opacity="1.000" /><path d="M 587.656,644.799 L -44.799,12.344 L 40.915,-73.371 L 673.371,559.085 Z" fill="#143966" fill-opacity="1.000" /><path d="M 673.371,559.085 L 40.915,-73.371 L 126.629,-159.085 L 759.085,473.371 Z" fill="#3d2f6d" fill-opacity="1.000" /><path d="M 759.085,473.371 L 126.629,-159.085 L 212.344,-244.799 L 844.799,387.656 Z" fill="#642659" fill-opacity="1.000" /><path d="M 844.799,387.656 L 212.344,-244.799 L 298.058,-330.513 L 930.513,301.942 Z" fill="#702039" fill-opacity="1.000" /><path d="M 930.513,301.942 L 298.058,-330.513 L 383.772,-416.228 L 1016.228,216.228 Z" fill="#572023" fill-opacity="1.000" /></g>
</svg>["#19442b", "#04414a", "#143966", "#3d2f6d", "#642659", "#702039", "#572023"]// https://grabient.com/_gDlgDDgEYgDUgBIgCYgMkgIYgM8gFkgAHgJu?style=linearSwatches&steps=7&angle=45
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 7.0;
const float ANGLE = 45.0;
vec3 palette(float t) {
vec3 a = vec3(0.229, 0.195, 0.280);
vec3 b = vec3(0.212, 0.072, 0.152);
vec3 c = vec3(0.804, 0.536, 0.828);
vec3 d = vec3(0.356, 0.007, 0.622);
return a + b * cos(6.283185 * (c * t + d));
}
// N hard swatches sampled from the palette
vec3 stops(float t) {
float i = min(floor(clamp(t, 0.0, 1.0) * STEPS), STEPS - 1.0);
return palette(i / (STEPS - 1.0));
}
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.229, 0.195, 0.280],
[0.212, 0.072, 0.152],
[0.804, 0.536, 0.828],
[0.356, 0.007, 0.622]
]