CSS Color Shades & Tints Generator

Build shades and tints of any colour and copy them as CSS variables.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

This tool takes a base colour and generates a light-to-dark ramp of tints (mixed toward white) and shades (mixed toward black), then outputs them as ready-to-paste CSS custom properties. It is built for designers and front-end developers who want a consistent set of related colours for buttons, hover states, borders and backgrounds without picking each one by hand.

How it works

The base hex is parsed into RGB. Tints are produced by linearly interpolating each channel toward white (255) by increasing amounts, and shades by interpolating toward black (0). You choose how many steps you want on each side. The results are converted back to hex and emitted as a :root block of CSS variables, so you get a usable palette in one copy.

Example

From a base of #2563eb with two steps each side, the output looks like:

:root {
  --tint-2: #b6cbf8;
  --tint-1: #6e97f2;
  --base:   #2563eb;
  --shade-1: #19429d;
  --shade-2: #0c214e;
}

Choose how many steps you want on each side, copy the variables, and you have a consistent light-to-dark ramp for buttons, hovers, borders and backgrounds — all generated in your browser with nothing uploaded.

Ad placeholder (rectangle)