Color Shades and Tints: Build a Reusable Color Scale
Learn how to create lighter tints and darker shades from one base color and organize them into a reusable interface color scale.
Tint, shade, and tone: what is the difference?
A tint is a color mixed with white, while a shade is a color mixed with black. A tone is commonly described as a color mixed with gray. These variations create hierarchy and depth without introducing unrelated hues. In a user interface, lighter tints can support surfaces and subtle backgrounds, while darker shades can support emphasis and active states.
Create a repeatable color scale
Start with a base color and generate several lighter and darker values. Name the steps consistently so they can be reused across components. A common convention is a numeric scale such as 100, 200, 300 through 900, with the lightest tint near one end and the darkest shade near the other. The exact number of steps is a design-system decision, not a universal rule.
Use the HexBloom shades and tints generator to create an 11-step scale from a base HEX value and export it as CSS custom properties.
Choose semantic roles instead of memorizing HEX values
Raw values are difficult to maintain when repeated throughout a codebase. Create semantic tokens such as --color-primary, --color-primary-hover, --color-primary-subtle, and --color-primary-strong. Components can then use meaningful names rather than depending on a particular hex string. For a larger project, organize tokens by role and document when each token should be used.
RGB mixing and perceptual color spaces
Mixing RGB values is computationally simple, but equal numeric steps do not always appear equally spaced to the eye. If a design system needs highly consistent visual steps, consider building or reviewing scales in a perceptual color space such as OKLCH. Regardless of the method, inspect the scale on real screens and in the actual component context.
Check contrast before shipping a scale
A visually pleasing scale is not automatically readable. Test text against every surface where it appears, including hover, disabled, focus, and selected states. WCAG 2.2 AA generally sets a 4.5:1 minimum for normal text and 3:1 for large text, subject to the criterion's exceptions. Use the HexBloom contrast checker and read the CSS variables and design tokens guide to move approved values into code.
Map scale steps to interface roles
One possible convention is to reserve the lightest steps for subtle surfaces, mid-range steps for decorative accents and borders, and darker steps for emphasis. The base color can be the default action color, while a darker shade may be used for hover or pressed states. Do not assume that a particular numeric step always has the same role across every hue; review contrast and visual weight before assigning tokens.
Common mistakes when creating color scales
A scale can become difficult to maintain when steps are too similar, when one hue changes unpredictably, or when the same raw HEX value is given different meanings in different components. Avoid adding steps just to reach a round number. Document the token purpose, test it in both light and dark surfaces if the product supports them, and keep a contrast-check record for important text pairs. If a scale must look evenly spaced, compare the RGB result with a perceptual color-space workflow such as OKLCH.
Frequently asked questions
How do you make a tint of a color?
A tint is made by mixing a color with white. The more white you add, the lighter the result becomes.
How do you make a shade of a color?
A shade is made by mixing a color with black. The more black you add, the darker the result becomes.
Are HEX shade scales perceptually uniform?
Not necessarily. Simple RGB mixing is easy to understand, but perceptually uniform scales may require color spaces such as OKLCH and visual review.