Skip to content
AZ Tools

Conic Gradient Generator

Visual builder for CSS conic-gradient() — rotate angle, center position, color stops, shape preview.

Preset:
Color stops
0.0%
25.0%
50.0%
75.0%
100.0%
CSS
background: conic-gradient(#ef4444 0%, #f59e0b 25%, #10b981 50%, #3b82f6 75%, #a855f7 100%);

Works in all modern browsers (Chromium 69+, Firefox 83+, Safari 12.1+). All values are degrees and percent.

How to use

  1. Pick a preset or start from the default rainbow. The preview updates as you tweak.
  2. Slide the from angle to rotate the whole gradient. Move the center sliders to off-center the conic apex.
  3. Add stops where you want hard transitions (two stops at the same position make a sharp edge — useful for pie charts).

About this tool

Show

A conic gradient sweeps its colours around a centre the way a clock hand sweeps the face, which makes it the one gradient that can draw a pie slice, a colour wheel or a loading ring without an image or a library. This builder gives you a live preview on an ellipse, square, rectangle or pie shape, sliders for the from angle and the at centre, and stops you can add, drag and recolour.

The generated CSS writes stop positions as percentages, and in conic-gradient() 100% is a full turn — so 25% is exactly 90deg and 33.33% is 120deg, which is the conversion you need when turning real proportions into a chart. The output also drops whatever is already the default: no from clause when the angle is 0, no at clause when the centre is 50% 50%, so what you copy is the shortest CSS that means what the preview shows.

Two stops at the same position produce a hard edge instead of a blend, which is how the pie and quadrant presets work. Two things that surprise people: colours are interpolated in sRGB by default, so a stop of red followed by a stop of green passes through a muddy olive rather than through the hues between them — a seven-stop rainbow approximates a colour wheel, it is not one; and the stop boundaries sit at true angles regardless of the box, so stretching a pie into a rectangle keeps each boundary pointing where it did while changing how much area each wedge covers. A proportion only reads correctly in a square. Supported in Chromium 69+, Firefox 83+ and Safari 12.1+.

Frequently asked questions

How is conic different from linear/radial?

Linear interpolates along a straight line; radial along a circle outward from a point; conic interpolates around a circle (like a clock face). Conic is what you reach for when the gradient should sweep around an axis — pie/donut charts, color wheels, checkered patterns, loading spinners.

Why two stops at the same position?

It creates a hard edge instead of a smooth transition. red 0% 25%, blue 25% 50% means 'red from 0 to 25%, then immediately blue from 25 to 50%' — perfect for pie chart segments or sharp checkerboard patterns. Without overlap, you'd get a smooth blend.

Why does my pie chart's edge look jagged?

Because a hard stop between two colours is a mathematically sharp boundary, and the browser has no intermediate pixels to smooth it with — the effect is most visible on a near-vertical or near-horizontal edge. Overlapping the two stops by a fraction of a degree gives the renderer something to blend, which reads as a clean line rather than a stair.

Can a gradient stand in for a real chart?

For a static proportion it is genuinely useful: one element, no library, and it scales. What it cannot do is carry the things that make a chart readable — a label, a tooltip, a value in the accessibility tree — so a gradient pie is a picture rather than data. Put the numbers next to it in text, and reach for a chart library when the values change or need to be inspected.

Related tools