Home ↓
CalculatorsVerified

Tech & Digital

Colour Tints and Shades Generator (Hex Palette)

Design systems rarely use a brand colour on its own. Buttons need hover and pressed states, alerts need light backgrounds, and borders, charts and illustrations need related lighter and darker versions. The simplest way to build these is to mix the colour with white to create tints, and with black to create shades. In the sRGB values used by screens and design tools, a tint moves each red, green and blue channel a chosen percentage of the way towards 255, while a shade scales each channel down towards zero. A 50 percent tint of pure red, for example, is #ff8080, and a 50 percent shade is #800000. Stepping in even increments, such as 10 or 20 percent, produces a ramp from the original colour to white and to black that keeps the same hue. This calculator takes a hex colour in three- or six-digit form and a step size, and returns the normalised hex code, its RGB and HSL values, the 50 percent tint and shade, and a table of tints and shades at every step. You can paste the codes directly into CSS, Figma, Sketch or other tools. Mixing in sRGB matches what most design tools do with opacity over white or black, but it is not perceptually uniform: equal steps can look larger in some hues than others. Systems that need very even ramps sometimes use perceptual colour spaces such as OKLCH, and every text colour should still be checked against its background for WCAG contrast.

How to use this calculator

  1. Enter the base colour as a hex code, for example #3366cc.
  2. Choose the step size for the tints and shades.
  3. Read the RGB and HSL values of the base colour.
  4. Use the table to pick lighter and darker versions.
  5. Check text and background pairs with a contrast checker.

Building a palette

Many design systems name colour steps from 50 to 900, with 500 as the base colour, lighter tints below it and darker shades above it. The table here gives a starting point that you can adjust by eye.

Light tints work well for backgrounds and subtle fills, mid tones for borders and icons, and dark shades for text and pressed states. Keep the number of steps manageable so the palette stays consistent.

Tints, shades and tones

A tone is a colour mixed with grey, which reduces saturation without making it much lighter or darker. Tones are useful for muted backgrounds and disabled states.

HSL values, shown for the base colour, help adjust lightness and saturation separately. Changing only the L value in HSL is another common way to create lighter and darker variants.

Formula & method

Tint = colour + (255 − colour) × p, applied to each RGB channelShade = colour × (1 − p)p runs from one step to 100 % (white or black)Mixing is done in sRGB values, as in most design tools

Tint channel = c + (255 − c) × p and shade channel = c × (1 − p), for each of red, green and blue, rounded to whole values.

Worked example

Tints and shades of pure red, #ff0000, at 50 %

  1. Tint: red stays 255; green and blue become 0 + 255 × 0.5 = 128
  2. 50 % tint = #ff8080
  3. 50 % shade = 255 × 0.5 = 128 red, so #800000

Answer: The tint is a soft pink and the shade a deep maroon, both with the same hue as the original red.

Frequently asked questions

What is the difference between a tint and a shade?

A tint is a colour mixed with white, making it lighter. A shade is a colour mixed with black, making it darker. Both keep the original hue.

Can I enter three-digit hex codes?

Yes. A three-digit code such as #36c is expanded to #3366cc before the tints and shades are calculated.

Why do some steps look uneven?

sRGB mixing is not perceptually uniform, so equal numeric steps can look larger in yellows and smaller in blues. Perceptual spaces such as OKLCH give more even ramps.

Is a tint the same as lowering opacity?

Visually, a tint matches the colour at reduced opacity over a white background. Over other backgrounds, a semi-transparent colour looks different, while a tint stays the same.

How do I use the HSL value in CSS?

Copy it directly, for example color: hsl(220, 60%, 50%). Modern CSS also accepts the space-separated form hsl(220 60% 50%).

Are these colours accessible?

Not necessarily. Light tints often fail contrast on white backgrounds. Check text colours with a contrast checker against the WCAG 4.5:1 minimum for normal text.