Tint and Shade Generator

Generate 10 tints and 10 shades of any color. Click any swatch to copy. Export all 21 colors as CSS variables.

Base Color:
Tints (lighter)
Base: #7C3AED
Shades (darker)
CSS Variables Preview

      
Who this tool is for:

Best for: Building a ten step tint and shade scale from one brand colour, and generating the lighter and darker variants a design system needs

Limitations: Produces tints and shades only (no tones) by mixing one colour with white or black in RGB, and copies CSS variables to the clipboard rather than pushing them into a design tool

Best suited for: Designers building a consistent colour scale from one approved brand hex

How the Steps Are Calculated

Enter a hex code or use the picker. For tint step k (1 to 10), the code (generateTints) moves each red, green and blue value toward 255 by k tenths: c + (255 - c) × k/10, rounded. Shades (generateShades) scale each value toward 0: c × (1 - k/10). The tints row runs from lightest to the base, the shades row from the base to darkest, and step 10 is always pure white or pure black. Click a swatch to copy its hex.

A Worked Scale From #7C3AED

All 20 steps with their contrast ratio on white, computed with this site's own code (method):

Twenty-one swatches from black to white through #7C3AED. Every shade, the base and tint T1 reach 4.5 to 1 on white; tints T2 and lighter do not.
Computed with this site's own code. Not a test with people.
StepTintOn whiteShadeOn white
0 (base)#7C3AED5.70#7C3AED5.70
1 (10%)#894EEF4.77#7034D56.69
2 (20%)#9661F13.98#632EBE7.88
3 (30%)#A375F23.29#5729A69.24
4 (40%)#B089F42.72#4A238E10.93
5 (50%)#BE9DF62.25#3E1D7712.75
6 (60%)#CBB0F81.89#32175F14.75
7 (70%)#D8C4FA1.59#25114716.80
8 (80%)#E5D8FB1.35#190C2F18.50
9 (90%)#F2EBFD1.16#0C061819.91
10 (100%)#FFFFFF1.00#00000021.00

Equal channel steps are not equal contrast steps. The first tint drops the ratio by 0.93 (5.70 to 4.77) and the last by 0.16 (1.16 to 1.00). The first shade adds 0.99; the ninth adds 1.41. At the dark end neighbors nearly merge: steps 8, 9 and 10 differ from the step before by only 1.10, 1.08 and 1.05 to 1. If a scale looks bunched at one end, skip steps there rather than using all ten.

Against the WCAG 2.2 minimum of 4.5:1 for normal text, the base, tint 1 and every shade qualify on white. Tints 2 and 3 reach the 3:1 large text level; tint 4 (2.72) and lighter should not carry text on white. Test any other base in the contrast checker.

Frequently Asked Questions

A tint mixes the base color with white and a shade mixes it with black, each in ten equal steps of 10 percent on the RGB values. This tool does not make tones, which mix a color with gray.
Tint step k moves each channel toward 255: c + (255 - c) x k/10, rounded. Shade step k scales each channel toward 0: c x (1 - k/10). So step 10 is always #FFFFFF or #000000, whatever the base.
Equal channel steps do not give equal contrast steps. From #7C3AED the first tint lowers the ratio on white by 0.93 and the last by 0.16, while the last three shades differ from their neighbors by only 1.10, 1.08 and 1.05 to 1, so they look nearly identical.
For #7C3AED, the base (5.70), tint 1 (4.77) and every shade reach the 4.5:1 WCAG 2.2 minimum for normal text. Tints 2 (3.98) and 3 (3.29) reach only the 3:1 level for large text.
All 21 colours shown, in the same order as the swatches: --color-tint-100 (pure white) down to --color-tint-10, then --color-base for your color, then --color-shade-10 up to --color-shade-100 (pure black). The number in each name is the percentage of white or black mixed in.
Related Tools

Get fresh reads straight to your inbox

Get notified when we publish new articles. Unsubscribe anytime.