Create a consistent color scale from one HEX value
A tint is a lighter version of a color made by mixing it with white. A shade is a darker version made by mixing it with black. Designers use tints and shades to create hover states, borders, backgrounds, emphasis levels, and reusable design tokens while keeping a consistent hue family.
How this color shades and tints generator works
Choose a base HEX color. The tool creates five tints by progressively mixing the base with white, keeps the original in the center, and creates five shades by mixing it with black. The generated values are expressed as HEX codes and can be copied as CSS custom properties. This simple RGB mixing method is predictable and fast, but it does not guarantee perceptually even steps in every hue.
How to use a generated scale
- Choose a base color that represents the brand or primary action.
- Review the lighter tints for subtle surfaces and backgrounds.
- Review the darker shades for emphasis, borders, and active states.
- Give tokens semantic names such as
--color-primary-100through--color-primary-900. - Test the actual text and background combinations with the WCAG contrast checker.
RGB mixing versus perceptual color spaces
Mixing RGB channels is straightforward, but equal numeric changes do not always look equally spaced to the human eye. More advanced design systems may use perceptual spaces such as OKLCH to build more visually uniform scales. Treat this generator as a practical starting point and review the result in the context where it will be used.
From color scale to design tokens
Once the scale is approved, assign roles rather than scattering raw values throughout your code. For example, use one token for the main button, another for its hover state, a light tint for a callout background, and a dark shade for readable text. You can then move the approved values into the Palette to CSS & Tailwind exporter. See the CSS color variables guide for naming and theme examples.
Frequently asked questions
What is the difference between a tint and a shade?
A tint is made by mixing a color with white. A shade is made by mixing a color with black.
How many steps should a color scale have?
There is no universal number. A 9- or 11-step scale is a useful starting point, but the number should match the needs of the design system.
Are generated shades automatically accessible?
No. Test each foreground and background pairing at the sizes and states used in your interface.