About the Shade and Tint Generator
This tool produces tints, shades and tones from a base HEX color in 5 to 20 steps. You pick a color, set the number of steps, and the page shows swatches and HEX codes. Tap any swatch to copy its HEX to the clipboard, or copy the whole ramp as CSS variables for quick use in a stylesheet. The app runs in your browser; nothing is uploaded and no installation or account is required. It is useful for designers making UI ramps, hover states, or style tokens, and for developers who need ready CSS variables. The interface is intentionally simple and focused. If you need built-in contrast ratios or explicit OKLCH interpolation controls, consider a specialised tool that reports those details.
How to use it
- 1Enter a HEX value or pick a color with the color picker.
- 2Choose the number of steps between 5 and 20 and select tint, shade, or tone.
- 3Tap any swatch to copy its HEX, or click Copy All to get CSS variables.
Worked example
Input: base color #000000, Steps: 5, Mode: tints. Exact result: #000000, #404040, #808080, #BFBFBF, #FFFFFF. CSS variables example: --color-1: #000000; --color-2: #404040; --color-3: #808080; --color-4: #BFBFBF; --color-5: #FFFFFF;
How it works
Makes tints (mixed with white), shades (mixed with black) and tones (mixed with grey) of a colour in 5 to 20 steps; tap to copy a HEX or copy all as CSS variablesWorks in the browser with nothing to installSource: OKLab and OKLCH background (Bjorn Ottosson)CSS Color Module and color-mix(). Last checked 15 November 2026.
What it is good for
- Runs in your browser with no upload or account.
- Create 5 to 20 uniform steps fast for palettes and UI ramps.
- Copy a single HEX or export the whole set as CSS variables.
- The interface does not show which color-space interpolation it uses.
- It does not provide automatic WCAG contrast warnings.
Questions people ask
What is the difference between a tint, a shade and a tone?
A tint is the base color mixed with white to make it lighter. A shade mixes the base color with black to make it darker. A tone mixes the base color with grey to reduce saturation.
How many steps should I generate for a UI palette?
Common choices are 5 to 11 steps for simple palettes and 10 or 11 for design systems. Pick what you need for backgrounds, borders, hover states, and readable text levels.
Can I copy the results into my stylesheet?
Yes. Tap a swatch to copy its HEX or use Copy All to paste a block of CSS variables directly into your stylesheet.
Does the tool upload my colors or images?
No. The generator runs in your browser and nothing is uploaded. After the page loads it can work offline in that browser session.
Are the generated steps perceptually even?
That depends on the interpolation method. Perceptual spaces like OKLab or OKLCH give more even steps visually. If you need explicit OKLCH control, use a specialised generator that exposes that option.
Can I export directly to Tailwind or JSON?
The tool copies CSS variables. It does not export Tailwind tokens or JSON directly. You can paste the CSS variables into a file and convert them with a small script or a separate converter.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.