Color shades generator
Turn one brand or interface color into a full palette of lighter tints and darker shades. Designers and front end developers use it to build color scales for buttons, backgrounds and borders.
- Runs in your browser
- Free, no account needed
- Copy or download the result
Result
The short answer
A tint is a color mixed with white and a shade is a color mixed with black. Using the same step each time gives an even scale from light to dark.
FormulaMixed channel = base channel x (1 - m) + target channel x m, where the target is 255 for white or 0 for black
Worked exampleFrom #3b82f6, a 10% white tint is #4f8ff7, a 50% white tint is #9dc1fb and a 10% black shade is #3575dd.
Example
#3b82f6
/* 9 tints and 9 shades of #3b82f6, mixed with white and black in sRGB */
:root {
--color-50: #ebf3fe; /* 90% white */
--color-100: #d8e6fd; /* 80% white */
--color-150: #c4dafc; /* 70% white */
--color-200: #b1cdfb; /* 60% white */
--color-250: #9dc1fb; /* 50% white */
--color-300: #89b4fa; /* 40% white */
--color-350: #76a8f9; /* 30% white */
--color-400: #629bf8; /* 20% white */
--color-450: #4f8ff7; /* 10% white */
--color-500: #3b82f6; /* base color */
--color-550: #3575dd; /* 10% black */
--color-600: #2f68c5; /* 20% black */
--color-650: #295bac; /* 30% black */
--color-700: #234e94; /* 40% black */
--color-750: #1e417b; /* 50% black */
--color-800: #183462; /* 60% black */
--color-850: #12274a; /* 70% black */
--color-900: #0c1a31; /* 80% black */
--color-950: #060d19; /* 90% black */
}How to use the color shades generator
- Type a base color in the box, such as #3b82f6 or royalblue.
- Set Steps each way, choose Variable names (50 to 950, or Tint and shade) and type a Variable prefix.
- The CSS block appears below. Results update as you type, and Run also works.
- Press Copy result or Download and paste the :root block into your stylesheet.
How it works
Each tint mixes the base color with white, and each shade mixes it with black, channel by channel in plain sRGB.
For a count of n, the mix amounts are 1/(n+1), 2/(n+1) and so on, so the default of 9 gives steps of 10% and never reaches pure white or black.
The 50 to 950 option puts the base at 500, tints below it and shades above it, so 9 steps produce --color-50 to --color-950. Tint and shade uses tint-1, base and shade-1 instead, and every line ends with a comment showing its mix.
The count can be 1 to 20. Transparent base colors are rejected, and the prefix must start with a letter and use only letters, digits and hyphens.
Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.
Questions and answers
What is the difference between a tint and a shade?
A tint is a color mixed with white, so it gets lighter. A shade is a color mixed with black, so it gets darker.
How do I use the CSS output?
Paste the :root block into your stylesheet, then use a value with var(), such as background: var(--color-100);.
Can I change the variable names?
Yes. Set Variable prefix to a word such as brand to get --brand-500, or switch Variable names to Tint and shade for numbered tints and shades.
Last updated November 1, 2026. Maintained by SnowRock. How our tools work
All 220 SnowRock tools