All free tools

Free tool · technology

Colour Shade Generator

Generate tints and shades of a base colour for a usable interface palette.

Colours

Ten steps from near-black to near-white at the same hue, which is what a usable interface palette needs.

Result

Base
#a3e635
Steps
11

#e8f9cd

#daf5ae

#ccf190

#bfee72

#b1ea53

#a3e635

#8bc42d

#72a125

#5a7f1d

#415c15

#293a0d

#e8f9cd
#daf5ae
#ccf190
#bfee72
#b1ea53
#a3e635
#8bc42d
#72a125
#5a7f1d
#415c15
#293a0d

Runs in your browser · Nothing is uploaded

Embed this on your site

Free to embed. The attribution link stays with the widget, and the calculator keeps working exactly as it does here.

<iframe src="https://thedigitalstash.net/embed/color-shade-generator" title="The Digital Stash calculator" width="100%" height="720" style="border:0;max-width:100%" loading="lazy"></iframe>

Understanding the Colour Shade Generator

The Colour Shade Generator creates a systematic range of lighter and darker variations from a single starting point. In user interface design, a base colour is rarely sufficient for a complete visual system. You require a range of values to represent borders, background surfaces, hover states, and text legibility. This tool automates the mathematical process of deriving those variations to ensure a consistent aesthetic.

The Methodology

The generator functions by manipulating the lightness and saturation values of a colour within the HSL (Hue, Saturation, Lightness) colour space. When generating tints, the tool keeps the hue constant while incrementally increasing the lightness percentage toward 100 per cent. When generating shades, it keeps the hue constant while decreasing the lightness percentage toward 0 per cent.

This approach maintains the identity of the primary colour throughout the palette. By using uniform percentage steps, the visual distance between each swatch remains consistent. This consistency is essential for maintaining a balanced hierarchy across interface elements.

A Worked Example

To illustrate how the tool operates, consider a base primary blue with the following HSL values: Hue 210, Saturation 50 per cent, Lightness 50 per cent.

When the tool generates a three-step scale of tints and shades, it applies a 15 per cent adjustment per step.

The Tints (Lighter variants):

  • Tint 1: Hue 210, Saturation 50 per cent, Lightness 65 per cent.
  • Tint 2: Hue 210, Saturation 50 per cent, Lightness 80 per cent.
  • Tint 3: Hue 210, Saturation 50 per cent, Lightness 95 per cent.

The Base Colour:

  • Base: Hue 210, Saturation 50 per cent, Lightness 50 per cent.

The Shades (Darker variants):

  • Shade 1: Hue 210, Saturation 50 per cent, Lightness 35 per cent.
  • Shade 2: Hue 210, Saturation 50 per cent, Lightness 20 per cent.
  • Shade 3: Hue 210, Saturation 50 per cent, Lightness 5 per cent.

Interpreting the Result

The output provides a structured array of hex codes. You should map these codes to specific functional roles within your interface. Tints are typically used for background panels, highlights, or disabled state indicators. The base colour usually serves as the primary action colour or branding element. Shades are intended for secondary text, active state borders, or deep-background footer areas.

When reviewing the palette, pay attention to how the colours interact. If a tint appears too washed out to be legible against a white background, you may need to adjust your base saturation. If a shade becomes indistinguishable from pure black, the step value is likely too aggressive.

Assumptions and Limits

The generator relies on the assumption that a linear change in lightness produces a linear change in perceived brightness. This is a simplification of human vision. The human eye perceives yellow as brighter than blue even when both are set to the same lightness value in HSL. Consequently, while these generated colours are mathematically precise, they may not be perceptually uniform.

The tool also assumes that the base colour sits within the middle of the spectrum. If you provide a base colour that is already near white or near black, the tool will have very little room to generate meaningful tints or shades in one direction. It does not perform gamut mapping, meaning that extreme transformations may result in colours that fall outside the sRGB colour space, causing the browser to render them as the closest available approximation rather than the requested value.

Who This Tool Is Not For

This tool is not intended for professional branding experts who require precise colour calibration for print production. Print output requires CMYK colour management and spot colour matching, which this tool does not support.

It is also not suitable for designers focusing on high-end accessibility compliance that requires exact contrast ratio calculations for every individual state. While this tool creates a balanced set, it does not calculate the specific contrast ratio against every possible background colour. If your project demands WCAG AAA compliance, you must verify each generated colour manually using a dedicated contrast checker. Finally, this tool is not for developers who need advanced colour blending or interpolation between two distinct hues. It is a single-hue generator designed for simplicity and functional consistency, rather than complex chromatic blending or decorative illustration work.

More tools like this