Pricing
Home/Free tools/CSS gradient generator
Updated November 24, 2026

CSS gradient generator

Linear, radial and conic gradients from color stops, as CSS to copy

  • Free, no account needed
  • Runs in your browser: nothing you type is sent anywhere
Type
°

0° runs from bottom to top, 90° from left to right

Color mixing

How browsers mix hex and rgb() colors when no color space is named. Two strong colors can meet in a dull, greyish middle.

Repeats the pattern when the last stop ends before 100%, for stripes and rings

Color stops

Drag a marker or type a position. Click the bar to add a stop at that point.

  1. %
  2. %
  3. %
background: linear-gradient(
  135deg,
  #0e4d64 0%,
  #2a9d8f 45%,
  #e9c46a 100%
);

The same stops, mixed three ways

sRGB
OKLab
OKLCH

What a CSS gradient is

A CSS gradient is an image the browser draws from a list of colors. It works anywhere an image does, most often as a background, and because it is drawn rather than downloaded it stays sharp at every size.

There are three kinds. A linear gradient runs along a straight line at an angle. A radial gradient spreads out from a center as a circle or an ellipse. A conic gradient sweeps around a center, like the hand of a clock. Each has a repeating version that tiles the stops when they end before the edge.

How stops, angles and color spaces work

Each color stop pairs a color with a position: along the gradient line for a linear gradient, outwards from the center for a radial one, around the turn for a conic one. Between two stops the browser blends the colors. Two stops at the same position make a hard edge instead of a blend.

When no color space is named, hex and rgb() colors are blended in sRGB, which can turn the middle of two strong colors grey. CSS Color 4 lets you name the space instead: in oklab blends evenly by how light colors look, and in oklch also keeps the chroma, so the middle stays vivid.

linear-gradient(135deg, #0e4d64 0%, #2a9d8f 45%, #e9c46a 100%)

135deg        toward the bottom right
#0e4d64 0%    first color at the start
#2a9d8f 45%   reached 45% of the way along
#e9c46a 100%  last color at the end

Hard edge:    #0e4d64 50%, #e9c46a 50%
In OKLCH:     linear-gradient(135deg in oklch, …)

Gradients in client and studio work

A gradient in a brand or a product interface is a design decision like any color, so treat it that way: name it, store it with the other tokens and get it approved from a real preview, not a description.

Very gentle gradients across a large area can show visible steps on some screens. A little more difference between the stops, or a fine texture over the top, usually hides them.

  • Check text contrast against both ends of the gradient, not only the middle
  • Keep gradient colors in your design tokens so they change with the palette
  • Use two stops at one position for stripes, progress bars and split backgrounds
  • Try OKLCH for brand gradients between strong colors that turn grey in sRGB
  • Send the CSS together with the approved preview, so build matches design

A tool by Lyniti

Keep design work and client feedback together

Lyniti connects briefs, visual files, client feedback, approvals, schedules and billing by project, so a studio can see what was approved and what is due in one place.

See Lyniti for design studios →

Related tools

All free tools →
  • Box shadow generator→Layered CSS box shadows previewed on a card, with the CSS to copy
  • Color converter→One color as HEX, RGB, HSL, OKLCH and OKLab, ready to copy
  • Color palette generator→Harmonies and a 50–950 scale from one color, or the main colors of an image

Embed this tool

Add it to your own site or help centre. It runs in your visitors’ browsers, like here, and links back to this page.

<iframe src="https://lyniti.com/tools/css-gradient-generator/embed" title="CSS gradient generator" width="100%" height="760" style="border:0;max-width:100%" loading="lazy"></iframe>

Frequently asked

questions

What is the difference between linear, radial and conic gradients?

A linear gradient changes color along a straight line at an angle. A radial gradient changes from a center outwards, as a circle or an ellipse. A conic gradient changes as it turns around a center, which suits pie charts and color wheels.

What does "in oklch" do in a CSS gradient?

It tells the browser to blend the colors in the OKLCH color space instead of sRGB, which keeps the middle of the gradient as saturated as its ends. Browsers that do not support it drop the whole declaration, which is why the generated CSS writes an sRGB line first.

How do I make a hard edge or stripes?

Put two stops at the same position, for example #0e4d64 50% and #e9c46a 50%, and the colors change in one step. For stripes, end the stops before 100% and tick Repeat the stops, so the pattern tiles across the box.

Can a gradient fade to transparent?

Yes. Lower the opacity in the color picker or type an rgba() color. Fade to the same color at 0 opacity, such as rgba(14, 77, 100, 0), rather than to transparent, so the fade keeps its hue in every browser.

Projects, clients and finance in one workspace

Lyniti helps agencies, consultancies, studios, and service teams manage projects, clients, approvals, invoices, bookkeeping, and finance in one workspace.

See it in actionSee it in actionSee Pricing

The all-in-one business collaboration platform that replaces multiple tools, streamlines workflows, and reduces costs for modern teams.

Product

  • Features
  • Pricing
  • Documentation

Features

  • Chat
  • Bookkeeping
  • Double-entry
  • Finances
  • Financial Approvals
  • Invoices
  • Whiteboard
  • Files
  • Meet
  • Tasks
  • Calendar
  • CRM

Solutions

  • Agencies
  • Operations
  • Finance & Admin
  • Projects
  • Freelancers
  • Governance
  • Teams + Finance
  • Projects + Bookkeeping
  • Design studios
  • Consultants
  • Remote teams
  • Projects + Invoicing
  • Client Portal
  • Projects + Approvals

Compare

  • vs 17hats
  • vs Airtable
  • vs Asana
  • vs Basecamp
  • vs ClickUp
  • vs Discord
  • vs Dropbox
  • vs Google Workspace
  • vs Jira
  • vs Linear
  • vs Microsoft Teams
  • vs Miro
  • vs monday.com
  • vs Notion
  • vs Plutio
  • vs QuickBooks
  • vs Rock
  • vs Salesforce
  • vs Slack
  • vs Smartsheet
  • vs Trello
  • vs Wimi
  • vs Wrike

Free tools

  • Invoice generator
  • Quote generator
  • VAT calculator
  • Profit margin calculator
  • Hourly rate calculator
  • Gantt chart maker
  • Online whiteboard
  • Time zone meeting planner
  • UTM builder
  • Email signature generator
  • Image resizer
  • Color contrast checker
  • QR code generator

Company

  • About
  • Blog
  • support@lyniti.com
  • Service status

Legal

  • Trust Center
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Data Processing Agreement
  • Imprint

© 2026 Lyniti. All rights reserved.

Made with love and Lyniti