Color shades generator

Preset Colors
Base Color
Shades — click to copy HEX
Contrast Checker (WCAG)
Export Code
Play to start playback
Speed 1.00x
Tone 1.00
Volume 100%

A color shades generator is an essential tool for designers and developers who want consistent palettes. This tool lets you generate a full range of shades from any base color you choose. Whether you are building a website, a mobile app, or a design system, color shades help maintain visual harmony. Understanding how to use this tool will save you hours of manual color work.

What is a color shade?

A color shade is a variation of a base color, produced by adjusting its lightness or darkness. Shades range from very dark tones at one end to very light tints at the other. In design, using a structured set of shades ensures that your interface looks polished and professional. A well-built palette gives you options for backgrounds, borders, text, and interactive elements.

Choosing your base color

To get started, simply pick a base color using the color picker on the left side. You can also type a HEX code directly into the input field if you already have a specific color in mind. The color picker and the HEX input are always synchronized, so changing one updates the other instantly. If you need inspiration, click the Random button to generate a completely random base color automatically. You can also choose from the preset swatches, which include popular colors like red, blue, indigo, green, and teal.

Selecting the number of shades

Once you have chosen your base color, decide how many shades you want to generate. The tool supports between 3 and 50 shades, giving you fine or coarse control over your palette. A smaller number like 5 or 7 is great for quick prototypes and simple interfaces. A larger number like 20 or more is better for design systems that require granular control. Use the number input field to enter any value within the supported range and the grid updates instantly.

Understanding the generation modes

The tool offers three different algorithms for generating shades, each producing a different visual result. Choosing the right mode depends on the type of project and the feel you want to achieve.

HSL (Natural) is the default mode and produces the most visually natural results. It works by adjusting the lightness of your color in the HSL color space across the full range. This mode also slightly desaturates the extreme shades to avoid overly washed-out or excessively vivid colors. Most designers will find this mode produces the most balanced and pleasing color ramps.

Luminance Steps keeps the hue and saturation fixed while varying only the lightness value uniformly. This creates a more mathematically consistent ramp where each step has an equal jump in brightness. It works well when you need predictable, evenly distributed shades for data visualization or charts. However, it can sometimes produce very similar shades at the extremes, depending on the base color.

Mix White/Black blends your base color with pure black on the dark end and pure white on the light end. This is the most traditional method and mimics how painters historically created shades and tints on a canvas. The results can feel slightly less vibrant than the HSL method, especially in the middle range. It is a good choice when you need compatibility with legacy tools or specific brand requirements.

Viewing your shades

The tool offers three different views so you can explore your generated palette in the way that suits you best. Switch between them using the tabs above the shades display area.

Grid view shows all shades as compact cards with the HEX code and a percentage label below each color block. It gives you a quick visual overview of the entire palette at a glance. Clicking any card instantly copies the HEX value to your clipboard and shows a confirmation toast.

List view shows each shade as a full row with its HEX code, RGB values, and a relative position label. This is ideal when you need all the color information visible at the same time. Clicking a row copies the HEX code and briefly shows a Copied! badge next to the color.

Tailwind Scale generates a fixed 11-step palette using the standard Tailwind CSS naming convention from 50 to 950. This view is independent from the shade count slider and always produces 11 values. It is useful if you want to integrate your custom color into a Tailwind CSS project quickly.

Exporting your palette

Once you are happy with your shades, the export panel lets you copy the code in four different formats.

CSS Variables generates a ready-to-use :root block with custom properties named --color-shade-1 through --color-shade-N. You can paste this directly into your stylesheet and start using the variables across your entire project. SCSS exports the same values as Sass variables, compatible with any SCSS-based workflow. JSON produces a structured object that you can import into design tools, configuration files, or JavaScript projects. JS Array exports a simple JavaScript array of HEX strings, perfect for use in canvas libraries, chart tools, or animation scripts.

Click the Copy button on the right side of the output field to copy everything to your clipboard in one click.

Checking accessibility with WCAG contrast

The contrast checker at the bottom of the page evaluates every generated shade against a chosen text color. You can set the text color using the color picker or by typing a HEX value into the input field. Each shade card displays a contrast ratio and a WCAG compliance label. AAA means the contrast is excellent and suitable for all text sizes and weights. AA indicates good contrast for normal body text according to the WCAG 2.1 standard. AA Large means the contrast is sufficient only for large or bold text, not for small body copy. Fail means the combination does not meet any WCAG threshold and should be avoided for text. Use this section to ensure your palette is accessible to users with visual impairments before finalizing your design.

Scroll to Top