Free Gradient

Royal Conic Gradient

A conic gradient rotates colour around a centre point instead of along a line, giving a spotlight-wheel effect. Copy the CSS below or use the AI prompt to generate variations.

  • dark
  • conic
  • bold
  • brand

Colours in this gradient

  • #002057
  • #2506ad
  • #7c3aed
  • #ff7b00
background: conic-gradient(from 210deg at 50% 50%, #002057, #2506ad, #7c3aed, #ff7b00, #002057);

The code

Plain HTML and CSS with no dependencies. Copy a single file, or choose "Full file" for a complete page you can save as index.html and open in a browser.

<div class="gradient"></div>

The AI prompt

Paste this into an AI coding tool to generate the same gradient, then ask it to adapt the colours, text or framework to your project.

Works with Claude · ChatGPT · Cursor · v0 · Bolt · Gemini
Create a full-screen conic CSS gradient background called "Royal Conic".

Requirements:
- A single div that fills the viewport (min-height: 100vh).
- Use this exact background value:
  conic-gradient(from 210deg at 50% 50%, #002057, #2506ad, #7c3aed, #ff7b00, #002057)
- Colours used: #002057, #2506ad, #7c3aed, #ff7b00.
- No images and no JavaScript.
- Also give me the same gradient as a Tailwind CSS arbitrary value class and as a CSS custom property (--gradient-royal-conic) I can reuse.

Return one HTML file with the CSS in a <style> tag.

How to build it, step by step

  1. 1

    Create an element to hold the gradient and give it a size. A gradient is a background image, so an element with no height shows nothing.

  2. 2

    Use conic-gradient(). Colours rotate around a centre point like a colour wheel. Repeat the first colour at the end so the seam is invisible.

  3. 3

    Add the colour stops: #002057 → #2506ad → #7c3aed → #ff7b00. Where no position is given, the browser spaces the stops evenly.

  4. 4

    Check text contrast. Place your real heading on top and make sure it stays readable across the whole gradient, not just in one corner.

Customisation tips

  • Store the gradient in a CSS custom property so every section uses the same value.
  • Use white or very light text on this gradient.
  • Add a subtle noise texture on top (see the Film Grain background) to remove visible colour banding on large screens.

More gradients