A color gradient in Excel is a continuous blend of two or three colors mapped across a selected range of cells, and the fastest built-in way to produce one is the Conditional Formatting menu's Color Scales option, where a 2-Color Scale tints the smallest value with one color and the largest value with another while a 3-Color Scale adds a midpoint hue for extra contrast. Excel then interpolates the cells in between so each row visually carries a number from cool to hot, or any pair you choose. The built-in rules cover the common cases — quick heat maps, sales dashboards, exam score tables — but they only ship a handful of preset palettes and a fixed minimum/midpoint/maximum pivot. If you need brand colors, a specific accent at a precise percentage, or a gradient you can also reuse on a companion web page, designing the exact stops in the Color Gradient Generator, copying each hex value back into Excel's custom color picker, gives you full control over every stop and angle without writing any code.

create color gradient in excel
How to Create a Color Gradient in Excel with Custom Stops

Excel's Built-In Way to Make a Color Gradient

Conditional Formatting has lived on Excel's Home tab for years, and its Color Scales submenu is the only place in the application that produces a true gradient — not a solid highlight, not a single icon, but a continuous color blend from one numeric extreme to the other. You do not need a formula, an add-in, or a special chart type. You select the cells, open Home > Conditional Formatting > Color Scales, and Excel applies the chosen scale instantly. The two preset families matter:

  • 2-Color Scale uses a Minimum color (applied to the smallest number in the range) and a Maximum color (applied to the largest). Mid-range values blend smoothly between the two.
  • 3-Color Scale adds a Midpoint color (often at the 50th percentile) so the gradient can dip through a neutral band — useful when you want to emphasize both low and high outliers against a calm middle.

Excel also lets you anchor each color to a specific percentile or number rather than the automatic min/max/midpoint, which is how you build gradients that match real business thresholds (for example, scores below 60 in red, 60–80 in amber, above 80 in green).

Designing the Exact Gradient You Want

The preset color scales in Excel — Red-Yellow-Green, Blue-Yellow-Red, White-Red — are fine for a draft, but most branded dashboards need custom hex values. Excel's More Rules dialog lets you open the color picker for each anchor and paste in any hex code you can read off a gradient strip. The challenge is designing the gradient itself: how many stops? Where does each color sit? What angle do you want the blend to read as? A visual CSS gradient generator earns its keep here. You can sketch the gradient in the browser, drag stops to the exact positions you want, and read off every hex value with no math, then carry those same colors back into Excel or paste the finished CSS into your web dashboard.

Keeping the Excel gradient and the CSS gradient in sync matters whenever a spreadsheet ships as part of a larger product surface — a sales report embedded in a Notion page, a KPI tile rendered in React, an executive summary sent as both an .xlsx file and a PDF generated from HTML. Identical hex stops at identical positions mean both versions tell the same visual story.

Build and Tune Your Gradient in the Generator

Use the Color Gradient Generator to design the exact color blend you want before you touch Excel's color picker. The whole loop takes a few minutes and leaves you with hex values you can paste straight into the Conditional Formatting dialog.

  1. Choose a gradient type — Linear for a directional fade or Radial for a center-out blend. For most Excel-to-web matches, Linear reads more like a heat map; Radial is reserved for spotlight effects on landing pages or hero cards.
  2. Set each color stop's color and drag its position slider; add or remove stops, and adjust the angle for linear gradients. Two stops give a clean two-color fade; a third or fourth stop at, say, #00ff00 at 50% creates a multi-band blend with a calm middle.
  3. Check the live preview, then click Copy CSS to grab the ready-to-paste background declaration. The tool re-sorts the stops by position and clamps each value into the valid 0–100% range, so the CSS it prints is always syntactically correct.
  4. Read each hex value off the stops you set. Write down the hex code, the percentage position, and the order so you can reproduce them inside Excel's custom scale dialog.

Everything runs locally in the browser, so the gradient you design never leaves your machine, and you can hit Randomize to explore fresh combinations you might not have picked by hand. When a result looks right, one click copies the CSS to your clipboard, and your notes give you the exact stops for Excel.

Apply Custom Gradient Colors Back in Excel

Once you have a list of hex stops from the gradient generator, applying them in Excel is a matter of pointing Excel's custom Color Scale rule at those exact values. The flow below produces a fully custom gradient on any selected range in under a minute.

  1. Select the cells that should carry the gradient — a single column, a row, or a rectangular block of numbers.
  2. Open Home > Conditional Formatting > Color Scales > More Rules at the bottom of the menu.
  3. In the New Formatting Rule dialog, pick either 2-Color Scale or 3-Color Scale depending on how many anchors your gradient has.
  4. For each anchor (Minimum, Midpoint, Maximum), change Type from Automatic to Number, Percent, or Percentile so you can pin the threshold that corresponds to each stop's position.
  5. Click the color button for each anchor and paste the hex value you noted. Excel accepts six-digit hex codes without the leading #.
  6. Click OK to apply. The selected cells repaint with the exact gradient you designed in the generator.
  7. If a row or column does not shade as expected, check that the cells contain numbers (text and blanks are ignored by Color Scales) and that the range you selected is contiguous.

For a 3-color scale where the midpoint sits at 50%, set the Midpoint Type to Percentile and the Value to 50. For brand gradients where the midpoint is not 50% — say a stop at 35% to bias the blend toward the warm end — set the Midpoint Value to 35 directly. This is how you keep Excel's band visually identical to the CSS gradient you exported.

Linear vs Radial: Matching Excel Visualizations to the Web

Excel's Color Scales only support a linear concept of color across values, but the moment your data leaves the spreadsheet and lands on a web dashboard, you can choose between a linear and a radial CSS blend. Both come out of the same Color Gradient Generator; the difference is purely visual.

Use CaseBest GradientReason
Heat map of sales by regionLinear (top-to-bottom or left-to-right)Reads as a clear progression across categories
KPI tile with a single big numberRadialCenter-out blend draws the eye to the headline figure
Section background for a report pageLinear at 180degMimics a calm top-to-bottom page wash
Button hover stateLinear at 135degSuggests depth and a directional light source
Spotlight behind a featured productRadial (circle)Soft glow that fades into the surrounding page

The hex values do not change between linear and radial — only the angle, the center point, and the way the browser interpolates between stops. Keep your hex palette stable and you can switch the rendering style without recoloring anything. For a deeper walk through how stops become production-ready CSS, see the CSS gradient colors guide from stops to code.

Pitfalls When Setting Up Excel Color Gradients

Even a clean gradient design can fall apart once it meets a real spreadsheet. A few pitfalls show up often enough to call out:

  • Picking anchors at Percent when the data has outliers. A single huge value will collapse every other cell into the Minimum color. Switch the anchor Type to Number or Percentile (for example 10th/90th percentile) so the gradient covers the meaningful bulk of the data.
  • Applying the scale to a range that mixes text and numbers. Color Scales ignore text, so the visible gradient looks broken across rows that contain labels. Move the labels to a separate column or use a formula-based rule instead.
  • Mismatched hex values between Excel and the web version. A difference as small as #1A2B3D vs #1B2B3D will look fine in isolation but clash side by side. Always paste the exact hex code you wrote down from the gradient generator, and never let Excel's eyedropper round it.
  • Forgetting that Color Scales re-evaluate when data changes. That is normally a feature, but if a chart or pivot downstream depends on the cell color, the visual order will shift as numbers move. Snapshot the formatting with Paste Special > Formats if you need a frozen version.

Once the Excel gradient and the matching CSS gradient share both stops and percentages, the spreadsheet, the dashboard, and any exported PDF will all carry the same visual story without manual recoloring.

If you're weighing options, Create a Color Gradient in InDesign Using CSS Stops covers this in detail.