MarketExploreTry on
Pricing
Sign inStart
Field GuideGradients
Gradients

Gradient maps: recolour anything in seconds

A gradient map takes any picture, photo, texture or illustration, and repaints it in the colours you choose while keeping all of its light and shade. It is the fastest recolouring tool there is.

GradientlyVerified Gradiently account·October 1, 2026·4 min read
Cover: Andante Lighthouse · GR·Q2MH·CX

The short version

  • A gradient map replaces each tone in an image, from its darkest to its lightest, with the colour at the matching point on a gradient.
  • The left end of the gradient colours the shadows, the right end colours the highlights, and everything in between colours the mid-tones.
  • A good gradient map ramp gets steadily lighter from left to right; if lightness jumps around, the image looks solarised.
  • Gradient maps are ideal for making sets of photos consistent, recolouring textures and illustrations into brand colours, and colour grading.
  • A duotone is simply a gradient map with two colours; three or more stops give much finer control over the mid-tones.
On this page
How a gradient map worksGradient map ramps that workWhat to use gradient maps forHow to apply a gradient map in an image editorA gradient map in CSS

A gradient map recolours an image by replacing each of its tones with a colour from a gradient. The image is first read as brightness only, from black to white, and then every brightness is swapped for the colour at the same point along the gradient: the left end paints the shadows, the right end paints the highlights. The shapes, light and detail of the picture stay exactly the same. Only the colours change, and you choose all of them.

How a gradient map works

Think of the gradient as a lookup table. A pixel at 0% brightness takes the colour at the far left; a pixel at 50% brightness takes the colour in the middle; a pixel at 100% takes the far right. Because the lookup depends only on brightness, two very different original colours with the same brightness, such as a red jumper and a green hedge, end up the same colour. That is what makes gradient maps so good at unifying images.

Deepest shadow

Position on the ramp

0%

Colour in Brand violet

Ink #120b1f
Dark tones

Position on the ramp

25%

Colour in Brand violet

Amethyst #3b1d6e
Mid-tones

Position on the ramp

50%

Colour in Brand violet

Violet #7c3aed
Light tones

Position on the ramp

75%

Colour in Brand violet

Orchid #f0abfc
Brightest highlight

Position on the ramp

100%

Colour in Brand violet

Lilac white #fdf4ff
Tone in the imagePosition on the rampColour in Brand violet
Deepest shadow0%Ink #120b1f
Dark tones25%Amethyst #3b1d6e
Mid-tones50%Violet #7c3aed
Light tones75%Orchid #f0abfc
Brightest highlight100%Lilac white #fdf4ff
How the Brand violet ramp below repaints an image. Most photos spend most of their pixels in the middle three rows.

Gradient map ramps that work

The single most important rule: the ramp should get lighter steadily from left to right. Then dark things stay dark and light things stay light, and the image keeps its sense of depth. You can shift hue as much as you like along the way. Classic photographic looks, such as sepia and cyanotype, are just ramps like this.

Six ramps that all get lighter from left to right. Each would recolour a photo convincingly; hue can wander, lightness should not.

Ramp that breaks the image

  • Lightness that goes up and down along the ramp
  • A pale colour at the far left, so shadows turn light
  • Opposite hues side by side, so mid-tones go grey
  • Only two stops far apart in hue

Ramp that holds the image

  • Lightness rising steadily from left to right
  • A near-black at the left, a near-white or pale tint at the right
  • Neighbouring hues, or a bright bridge between distant ones
  • Three to five stops to control the mid-tones

Breaking the lightness rule on purpose gives a solarised, psychedelic look, which can be fun for posters. For anything that should still look like a photo, keep the ramp steady. If a mid-tone goes grey, the fix is the same as for any gradient: see muddy gradients.

What to use gradient maps for

  • Consistent photo sets: stock photos, phone photos and old archive images all come out in one palette; see brand consistency
  • Brand textures: turn any greyscale texture, such as clouds, concrete, fabric or noise, into a background in your brand colours; see background texture
  • Illustrations and icons: recolour a whole set at once by mapping its greys
  • Colour grading: set a gradient map layer to Soft Light or Color at low opacity for a subtle film look over the original colours
  • Data and science: heat maps and false colour images are gradient maps of measurements
  • Duotone and tritone: two or three stops for bold poster treatments; see the duotone effect

How to apply a gradient map in an image editor

  1. 1

    Add a gradient map adjustment

    Photoshop, Affinity Photo and GIMP all have one. Use an adjustment layer where you can, so the original stays untouched.

  2. 2

    Set the ends first

    Put a near-black version of your darkest brand colour at the left and a pale tint at the right. Check the image still reads.

  3. 3

    Add mid-tone stops

    Place your main brand colour around 50% and adjust its position until skin, skies or key objects look right.

  4. 4

    Blend it back if needed

    For grading rather than full recolouring, change the layer's blend mode to Soft Light or Color and lower the opacity.

  5. 5

    Save the ramp

    Save the gradient as a preset and use it on every image in the set, so they all match.

A gradient map in CSS

Browsers can apply a gradient map with an SVG filter. feColorMatrix turns the image to greyscale, and feComponentTransfer maps it through a table of values for each channel. Each list below is the Brand violet ramp: the five stop colours' red, green and blue values divided by 255, at evenly spaced positions.

html
<svg width="0" height="0" style="position:absolute" aria-hidden="true">
  <filter id="brand-violet-map" color-interpolation-filters="sRGB">
    <feColorMatrix type="matrix" values="0.2126 0.7152 0.0722 0 0
                                         0.2126 0.7152 0.0722 0 0
                                         0.2126 0.7152 0.0722 0 0
                                         0      0      0      1 0"/>
    <feComponentTransfer>
      <!-- #120b1f  #3b1d6e  #7c3aed  #f0abfc  #fdf4ff -->
      <feFuncR type="table" tableValues="0.071 0.231 0.486 0.941 0.992"/>
      <feFuncG type="table" tableValues="0.043 0.114 0.227 0.671 0.957"/>
      <feFuncB type="table" tableValues="0.122 0.431 0.929 0.988 1"/>
    </feComponentTransfer>
  </filter>
</svg>

<img src="texture.jpg" alt="" style="filter: url(#brand-violet-map)">
A five-stop gradient map as an SVG filter. Change the table values to change the ramp.

Questions people ask

What is a gradient map?

A gradient map recolours an image by replacing each tone, from darkest to lightest, with the colour at the matching point on a gradient.

What is the difference between a gradient map and a duotone?

A duotone is a gradient map with only two colours. Gradient maps can have three or more stops for finer control of the mid-tones.

Why does my gradient map look strange?

The ramp's lightness probably goes up and down. Make it get steadily lighter from left to right so shadows stay dark and highlights stay light.

How do I use a gradient map for colour grading?

Add the gradient map as an adjustment layer, then set its blend mode to Soft Light or Color and lower the opacity.

Can I use a gradient map in CSS?

Yes, with an SVG filter that converts to greyscale and then maps each channel through feComponentTransfer table values.

Share this guide

Written by GradientlyVerified Gradiently account

The team behind Gradiently, a design tool built around Marks: living gradients that make everything you design look like yours.

See our profile

On this page

How a gradient map worksGradient map ramps that workWhat to use gradient maps forHow to apply a gradient map in an image editorA gradient map in CSS

Share this guide

Next in Gradients

Gradient angle and direction: which way should a gradient go

Keep reading

All Gradients guides
Gradients

The duotone effect: make any photo on-brand in two colours

5 min read

Duotone turns any photo into two colours of your choosing: one for the shadows, one for the light. It is the fastest way to make mismatched pictures look like one brand.

Colour

Color palette from image: how to pull one from a photo

5 min read

An eyedropper gives you a pixel. A palette needs the colours you remember from the picture, in the right proportions. Here is how to get from one to the other.

Gradients

Why some gradients go grey in the middle, and how to stop it

5 min read

Blue and yellow should make a lovely gradient. Blend them the default way and you get a grey smudge in the middle. Here is exactly why, and four ways to keep every blend clean.

Find the look that’s only yours.

Every Mark is a living background with one owner. Try an unclaimed Mark, and claim yours when it feels right.

Start designingSee the launch offer

Marks left to claim

50of 1,000

950 claimed so farFind yours

Check a certificate

Type a certificate number or a Mark’s code to see who owns it.

Works with ChatGPT and Claude

Ask your AI for a design. It makes it in your Mark, ready to edit.

ChatGPTClaude
How to connect

Product

  • Market
  • Explore
  • Pricing
  • Launch packs
  • Certificates

Learn

  • Field Guide
  • Help centre
  • What’s new

Developers

  • Overview
  • ChatGPT and Claude
  • API reference
  • API keys

Company

  • About
  • Contact us
  • Sign in

Legal

  • Terms
  • Privacy
  • Refunds
  • Mark protection
  • Cookies
  • All policies
Move through the letters. Each one wears a real Mark.Touch a letter to see its Mark.One name. Ten Marks inside it.
© 2026 Gradiently