←
Design

Color Shades Generator

Loading the tool…

Ready when you are.Runs in this browser · nothing is uploaded

Tints and shades scale from 50 to 950

  • Free
  • No sign-up
  • No upload
  • Works offline

Tool facts

Price
Free, no sign-up, no watermark
Are files uploaded?
No. Everything is processed in this browser, on your device.
Offline use
Works without a connection once this page has loaded
Browser
A recent Chrome, Edge, Firefox or Safari, on computer or phone.

Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.

About Color Shades Generator

Color Shades Generator turns a single color into a complete 11-step scale from 50 (lightest) to 950 (darkest), the naming used by Tailwind CSS and many design systems. Your color is placed on the step whose lightness matches it best, so a mid blue becomes 500 and a pale tint becomes 50 or 100, and the other steps are built around it. You can also pin the color to a specific step yourself.

The scale is calculated in OKLCH, the perceptual color space Tailwind CSS v4 uses for its default palette. Lightness follows a curve close to Tailwind's, chroma tapers toward the very light and very dark ends, and the hue stays constant so the shades never drift toward gray or another color. Each step shows its HEX and OKLCH values and its contrast ratio on white and on black, so you can see which shades are safe for text. Copy the result as CSS variables, Tailwind v3 config, a Tailwind v4 @theme block or JSON.

Color Shades Generator runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.

How to use Color Shades Generator

  1. Enter your Base color as HEX or any CSS color, or click the color square to pick one.
  2. Type a Color name such as brand or primary; it is used in the variable and config names.
  3. Leave Place color at on Auto, or choose a step such as 500 to pin your color there.
  4. Check the scale and the contrast columns; ratios of 4.5:1 or more are highlighted as safe for normal text.
  5. Under Export, choose CSS HEX, CSS OKLCH, Tailwind v3, Tailwind v4 or JSON and click Copy.

Frequently asked questions

How do I add the shades to Tailwind CSS?

For Tailwind v4, copy the Tailwind v4 output into your main CSS file; the @theme block creates utilities such as bg-brand-500 and text-brand-900. For Tailwind v3, copy the Tailwind v3 output into tailwind.config.js under theme.extend.colors.

Why is my color not at step 500?

In Auto mode the color goes to the step with the closest lightness, which keeps light colors light and dark colors dark across the scale. The step holding your exact color is marked with a dot. Choose a step under Place color at to override it.

Why OKLCH instead of mixing with white and black?

Mixing with white or black in RGB washes colors out and shifts some hues, so blues turn purple and yellows turn olive. OKLCH changes perceived lightness while keeping the hue, and reduces chroma only where the sRGB gamut requires it.

Which shades can I use for text?

Use a shade whose contrast ratio is at least 4.5:1 against your background for normal text and 3:1 for large text, as required by WCAG AA. The On white and On black columns show these ratios for every step.

Is my color sent anywhere?

No. The scale is calculated in your browser with JavaScript and nothing is uploaded or stored.

· Free · Runs in this browser · nothing is uploaded

Drop any file here
Drop it to see which tools can open it