DevToys Web Pro iconDevToys Web ProBlogg
Översatt med LocalePack logoLocalePack
Betygsätt oss:
Prova webbläsartillägget:

Tints & Shades Generator

Valid
10

21 colors

Tint 100%#ffffff
Tint 90%#ebf3fe
Tint 80%#d8e6fd
Tint 70%#c4dafc
Tint 60%#b1cdfb
Tint 50%#9dc1fb
Tint 40%#89b4fa
Tint 30%#76a8f9
Tint 20%#629bf8
Tint 10%#4f8ff7
Base#3b82f6
Shade 10%#3575dd
Shade 20%#2f68c5
Shade 30%#295bac
Shade 40%#234e94
Shade 50%#1e417b
Shade 60%#183462
Shade 70%#12274a
Shade 80%#0c1a31
Shade 90%#060d19
Shade 100%#000000
Tekniska detaljer

How the Tints & Shades Generator Works

What the Tool Does

The Tints & Shades Generator creates lighter tints (mixed with white) and darker shades (mixed with black) from any base color. Enter a color and choose the number of steps to generate a smooth gradient of variations. Each step displays HEX, RGB values and the mixing percentage, making it easy to build consistent color scales for UI design, branding, and data visualization.

Common Developer Use Cases

Developers use tint and shade generators when building design token scales (e.g., blue-100 through blue-900), creating hover and active states for interactive elements, designing accessible color hierarchies, and producing consistent background and surface colors for light and dark themes. The tool is essential for building Tailwind CSS custom color palettes or Material Design color systems.

How Tints and Shades Work

A tint is created by mixing a color with white, increasing its lightness. A shade is created by mixing with black, decreasing lightness. The formula for tints is: new = base + (255 - base) × factor. For shades: new = base × (1 - factor). Steps are evenly distributed between the base color and pure white (tints) or pure black (shades), producing a linear gradient of color values.

Common Pitfalls and Edge Cases

Linear mixing with white or black can produce washed-out tints or muddy shades for some hues. Yellows may appear greenish when darkened, and blues may lose vibrancy when lightened. For perceptually uniform scales, consider using OKLCH or CIELAB color spaces. Always verify that your lightest tints and darkest shades maintain sufficient contrast against their intended backgrounds.

When to Use This Tool vs Code

Use this browser tool for quick exploration and generating color scales during design work. For production design systems, generate tints and shades programmatically using color libraries like chroma.js or culori that support perceptually uniform color spaces and can output design tokens in any format.