Tint and Shades Generator
CU-23Type a color such as #336699 and get lighter tints and darker shades in even steps, as a hex list or as JSON. Choose 3 to 19 steps on each side.
Runs in your browser. Nothing is uploaded.
Colors, one per line (hex, rgb(), hsl() or a color name)
Tints and shades
How to use it
- Type or paste one color per line: hex, rgb(), hsl() or a CSS color name.
- Choose how many steps you want on each side of the base color.
- Press Tints and shades for a list, or JSON for a data structure.
- Copy the result or download it.
How tints and shades are made
A tint mixes your color with white and a shade mixes it with black, channel by channel in plain sRGB. With N steps, the mixes are spaced evenly at 100 divided by N+1 percent. Five steps give 16.7, 33.3, 50, 66.7 and 83.3 percent, and the last step stops short of pure white or black, so you always get N distinct colors.
Rounding and limits
Each channel is rounded to a whole number from 0 to 255, so a very dark color can produce repeated shades: black mixed with black is black at every step. The mix is simple sRGB, not perceptual, so the steps may look uneven for some hues. Alpha in the input is dropped, and the base color is always shown unchanged.
Output formats
The list view shows the base, then tints, then shades with their percentages. The JSON view gives an object with base, tints and shades for one color, or a list of such objects for several colors. Up to 500 colors can be processed at once.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
Line 1: "nope" is not a color. Use hex (#rgb, #rrggbb, #rrggbbaa), rgb(), hsl(), hsv(), cmyk() or a CSS color name. | The line could not be read as a color. | Write the color as hex, rgb(), hsl(), hsv(), cmyk() or a CSS color name. |
Too many colors (501). The limit is 500 at a time. | The input has more than 500 colors, which is the most the tool handles in one run. | Split the list into smaller batches. |
Questions people ask
What is the difference between a tint and a shade?
A tint is a color mixed with white, so it is lighter. A shade is a color mixed with black, so it is darker. A tone, which is not made here, is a color mixed with gray.
How do I make a lighter version of a color?
Mix each of red, green and blue toward 255 by the same percentage. Type your color into the tool and read the tints list, where 50% is halfway to white.
How many steps should I choose?
Five or nine steps on each side are common for a UI palette, giving 11 or 19 colors including the base. Three steps give a quick light, base and dark set. The choices run from 3 to 19.
Does the tool use HSL lightness?
No. It mixes the RGB channels directly with white or black. HSL lightness changes can shift how colors look, so the results from the two methods differ a little.
Can I get CSS variables from it?
Not directly here, but the JSON output has the hex codes in order, which you can paste into a script that writes your variables. The existing Tint and Shade Generator on this site has a CSS variables output.
Why are some shades the same color?
Rounding to whole 0 to 255 numbers means a very dark color such as #000000 stays black at every shade step. The same happens with white and tints.
About this tool
A tint mixes the color with white and a shade mixes it with black, channel by channel in plain sRGB. With N steps the mixes are spaced evenly at 100/(N+1) percent, so 5 steps give 16.7, 33.3, 50, 66.7 and 83.3 percent and the last step never reaches pure white or black. Each channel is rounded to a whole number. The mixing is not perceptual, so steps look uneven for some colors. Alpha is dropped. The JSON action returns an object with base, tints and shades for one color, or a list of them for several.