GamutDesk Logo
GamutDesk

CSS Conic Gradient Generator

Design CSS conic-gradient() color wheels with starting angle, center position and color stops. Includes a repeating mode and copy-ready CSS output.

Client-Side ArchitecturePrivate Client-Side Processing

Preview

Geometry

0deg
50%
50%
Repeating
Shape

Color stops (position %)

CSS
background: conic-gradient(from 0deg at 50% 50%, #FF0000 0%, #FFFF00 17%, #00FF00 33%, #00FFFF 50%, #0000FF 67%, #FF00FF 83%, #FF0000 100%);
border-radius: 50%;

Technical Specification & Mathematical Principles

How the Conic Gradient Generator Works

A conic gradient sweeps colors around a center point like a clock hand. The syntax is conic-gradient(from 45deg at 50% 50%, #FF0000 0%, #0000FF 100%), where from sets the starting angle, at sets the center and each stop uses a percentage of the full 360 degree turn.

A stop at 25% is 90 degrees around, 50% is 180 degrees and 100% is 360 degrees. Add border-radius: 50% to a square element for a color wheel or pie chart, or use repeating-conic-gradient() for checkerboards and sunburst patterns.

Frequently Asked Questions

How do I make a hard-edged pie chart?
Give two adjacent stops the same position, for example red 0% 40%, blue 40% 100%. There is no interpolation between equal positions, which creates a sharp edge.
Is conic-gradient widely supported?
Yes. It is supported in all current evergreen browsers. Provide a solid background-color fallback for very old browsers.
What does 'from' do?
It rotates the starting point clockwise. from 0deg begins at the top, from 90deg begins at the right.

Related Design & Color Instruments