Example
Options
Type: linear Angle: 135° Stops: #5b21b6 0%, #ec4899 50%, #f97316 100%
Output (CSS)
background: linear-gradient( 135deg, #5b21b6 0%, #ec4899 50%, #f97316 100% );
Note
Supports linear, radial, and conic. Stops are add/remove on the fly. Copy the CSS straight into any project.
Usage / FAQ
When to use
- Design hero-section or card backgrounds
- Add gradient hover effects to buttons
- Build multi-stop gradients for charts and infographics
- Pair gradients between light and dark mode
- Match gradients between Figma / Sketch and code
FAQ
- Q.What's different about conic-gradient?
- A.linear runs along a line, radial radiates from a point, conic sweeps around a center — perfect for pie charts and spinners. Supported in every modern browser since CSS 4.
- Q.How are colors interpolated between stops?
- A.Default is linear interpolation in sRGB — the midpoint can look muddy. Use a color-space hint in CSS 4 like `linear-gradient(in oklch, red, blue)` for cleaner mixing.
- Q.My gradient looks banded.
- A.Caused by 8-bit color limits plus close neighboring stops. Mitigate by adding more stops or applying a tiny noise / dither (via CSS filter or an overlay image).
Fun facts
CSS3's `linear-gradient()` was standardized in 2009 as part of the W3C CSS Image Values Module Level 3. Before that, PNG/SVG images were the typical way to embed gradients. Mozilla shipped it first as `-moz-linear-gradient` in 2008; WebKit and Opera followed, and consensus formed around the standard.
W3C — CSS Image Values 3`conic-gradient()` (CSS Image Values 4, 2018) was the last gradient family to be added — colors rotate clockwise from the center. It lets pure CSS draw pie charts, clock faces, and game progress meters without SVG or canvas.
MDN — conic-gradientStarting with CSS Color 4 (2024), gradient color interpolation can run in perceptual color spaces like `in oklch` — transitions look more natural than sRGB and dodge the 'muddy middle' (the dirty-gray midpoint trap). Syntax: `linear-gradient(in oklch, red, blue)`.
W3C — CSS Color 4 interpolation
Related guides
Related tools
- Color Converter
Convert colors between HEX, RGB, and HSL with a live preview swatch. Auto-detects any of the three input formats.
- Image to Base64 (Data URI)
Convert an image file to a Base64 data URI for inline embedding in HTML/CSS/Markdown. Up to 5 MB.
- Image Resize & Compress
Resize, crop, and compress images entirely in your browser. Pick width × height, choose crop or fit mode, adjust JPEG quality. Outputs as {original}_{w}x{h}.{ext}.
- Image Crop
Crop images right in your browser — drag to select, lock aspect ratios (1:1, 16:9…), export PNG/JPEG. No upload.
- Emoji Picker
Pick and copy emojis with one click. Search by name (en/ko), browse by category, and keep your recents and favorites in the browser.
- QR Code Generator
Generate a QR code from any text or URL. Adjustable error correction (L/M/Q/H), SVG output, downloadable.
- Color Contrast Checker
Check the WCAG contrast ratio between two colors. Pass/fail for AA Normal/Large + AAA Normal/Large with a live sample.
- Color Palette Generator
Generate a palette from a single base color — shades, tints, complement, analogous, triad, tetrad. HSL-based. 0 dependency.
- PDF Merge
Merge multiple PDF files into a single document. Drag to reorder pages, all client-side — files never leave your browser.
- PDF Split
Extract a page range from a PDF — e.g. 1-3,5,7-9. All client-side, files never leave your browser.
- PDF Rotate
Rotate all or selected PDF pages by 90°, 180°, or 270°. Useful for scanned documents in wrong orientation. All client-side.
- PDF Watermark
Add a text watermark (CONFIDENTIAL, DRAFT, etc.) to every PDF page. Control opacity, rotation, size, color. All client-side.
- PDF Compress
Re-encode a PDF with object stream compression and metadata stripping. Modest size reduction (text-heavy: 5-20%). Image-heavy PDFs need server-side tools. All client-side.
- Image to PDF
Combine JPG, PNG, and other images into a single PDF — in your browser. Reorder pages, choose A4/Letter or original size. Nothing is uploaded.
- Favicon Generator
Make a favicon from an image, emoji, or text — multi-size favicon.ico, apple-touch-icon, PWA icons + ready HTML/manifest snippets, in your browser.