XTools Logo
XTools
Blog
/
Color ConverterContrast CheckerGradient GeneratorPalette from ImageColor Palette GeneratorColor Blindness SimulatorImage Color Picker

© 2026 XTools. All rights reserved.

Privacy PolicyContact Us

    Gradient Generator

    Design linear, radial, and conic gradients and export CSS or an image
    • Files never leave your device
    • Runs in your browser
    • Free, no sign-up, no watermark

    Color stops

    Click the bar to add a stop. Drag handles to move them; arrow keys nudge, Delete removes.

    • 1
      %
    • 2
      %
    • 3
      %

    Code

    The first line is a fallback with precomputed stops for browsers without “in oklab/oklch” support.

    Type

    °

    Keeps colors vivid by walking around the hue wheel. Uses CSS “in oklch”.

    Presets

    Download image

    px
    px

    Related tools

    • Color Converter
    • Contrast Checker
    • Palette from Image
    • Color Palette Generator
    • Color Blindness Simulator
    • Image Color Picker

    How to use Gradient Generator

    Build linear, radial and conic gradients with as many color stops as you like, blended in sRGB, OKLab or OKLCH. Copy the result as CSS, a Tailwind class or SVG, or download it as a PNG, JPG or WebP image up to 8192 px per side.

    1. 1

      Choose a Type (Linear, Radial or Conic) and set the Angle, the Shape or the center; for radial and conic you can drag on the preview to move the center.

    2. 2

      Edit the Color stops: click the bar to add a stop, drag handles to move them, and change each color and position in the list.

    3. 3

      Pick how to Blend colors in (sRGB, OKLab or OKLCH), or start from one of the Presets or Random.

    4. 4

      Copy the code from the CSS, Tailwind or SVG tab.

    5. 5

      For an image, set Width and Height or pick a size, choose PNG, JPG or WebP, and click Download.

    Frequently asked questions

    What is the difference between sRGB, OKLab and OKLCH blending?

    sRGB is classic CSS blending, where complementary colors can turn grey in the middle. OKLab is perceptually even, with no muddy midpoints. OKLCH keeps colors vivid by moving around the hue wheel.

    Do OKLab and OKLCH gradients work in older browsers?

    The CSS output starts with a fallback line that uses precomputed stops for browsers without “in oklab” or “in oklch” support. The SVG code and downloaded images use precomputed stops too, so they look the same everywhere.

    Why is the SVG tab disabled for conic gradients?

    SVG has no conic gradient. Download a PNG, JPG or WebP image instead.

    Can I use transparent stops?

    Yes, colors with alpha such as rgba() or #rrggbbaa work. Download PNG or WebP to keep the transparency, since JPG has no alpha channel.

    Is the image made on a server?

    No. The image is drawn on a canvas in your browser and saved directly, at any size from 1 to 8192 px per side.

    How do I fine-tune a stop with the keyboard?

    Focus a stop handle and use the arrow keys to move it by 1% (Shift for 10%), Home or End to jump to the ends, and Delete to remove it. A gradient always keeps at least two stops.