# Color Wheel

> A full hue color wheel that fades to white in the center, made from a conic and a radial gradient.

- Category: [CSS Gradients & Patterns](https://copy-css.com/category/gradients)
- Tags: conic-gradient, hue, color picker, rainbow, radial
- Live preview: https://copy-css.com/snippets/color-wheel
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="color-wheel" role="img" aria-label="Color wheel"></div>
```

## CSS

```css
.color-wheel {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #fff, #fff0),
    conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  box-shadow: 0 8px 24px #18181b29;
}
```

## Notes

- This CSS Color Wheel is 9 lines of pure CSS (0.2 KB) with no JavaScript and no dependencies. It uses radial gradients, conic gradients, box shadows and aspect-ratio.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
