Format Code Now
/
Web & markupTint and Shade Generator Next: Color Contrast Checker ›

Tint and Shade Generator

WM-13

Paste a color and get up to 10 tints (mixed with white) and 10 shades (mixed with black) as hex codes, or as a block of CSS custom properties.

Runs in your browser. Nothing is uploaded.

Colors, one per line

Tints and shades

How to use it

  1. Paste one color per line, in hex, rgb(), hsl() or as a name.
  2. Choose a step of 5, 10 or 20 percent.
  3. Click Hex list for the codes, or CSS variables for a :root block you can paste into a stylesheet.
  4. Copy the result or download it.

How tints and shades are made

A tint moves each channel toward white by the percentage shown, and a shade moves it toward black. A 30 percent tint of #3366cc is 30 percent of the way from the color to #ffffff, worked out per channel in plain sRGB. This is a simple mix, not a lightness scale made for even perceived steps, so the spacing may not look uniform for every hue. The base color is never changed.

How many steps you get

The page makes up to 10 of each. At a 5 percent step they are 5 to 50 percent. At 10 percent they are 10 to 100 percent. At 20 percent there are 5 of each, up to 100 percent, which is pure white or pure black, so the last step carries no trace of your color. Results are opaque 6-digit hex; any alpha on the input is dropped.

CSS variables

The CSS action writes a :root block with names like --color-tint-30, --color-base and --color-shade-30, with the lightest tint first. When you paste several colors they are numbered, --color-1-tint-30 and so on. Rename them to fit your design tokens. All the math runs in your browser and nothing is uploaded.

Error messages and what to do

MessageWhat it meansFix
Line 2: "blorp" is not a color. Use hex (#rgb, #rrggbb, #rrggbbaa), rgb(), hsl(), hsv(), cmyk() or a CSS color name.The second line could not be read as a color.Fix or remove that line.

Questions people ask

What is the difference between a tint and a shade?

A tint is a color mixed with white, so it gets lighter. A shade is the color mixed with black, so it gets darker. A tone is mixed with gray. This page makes tints and shades.

How do I make a lighter version of a color?

Mix it with white. Each channel moves toward 255 by your chosen percentage. A 20 percent tint of #3366cc is #5c85d6. Pick a step above and use the Hex list to see them all.

How do I make a color palette from one color?

Generate the tints and shades, then pick a few steps for backgrounds, borders, text and hover states. Use the CSS variables action to get named properties, then rename them to match your project.

Why is the last step pure white or black?

At 100 percent the mix has no trace of the original color left. At a 10 percent step the tenth tint is #ffffff and the tenth shade is #000000. Skip those if you want only tinted colors.

Are the steps evenly spaced to the eye?

Not necessarily. The page mixes channels directly in sRGB, which is simple and predictable but not perceptually uniform. If you need even visual steps, adjust a few by hand.

About this tool

A tint mixes the color with white and a shade mixes it with black, channel by channel in plain sRGB, by the percentage shown. It makes up to 10 of each: at a 5% step that is 5% to 50%, at 10% it is 10% to 100%, and at 20% it is 5 steps up to 100%, which is pure white or black. This is a simple mix, not a perceptual or lightness-based scale, so steps may not look evenly spaced. Alpha is ignored and results are opaque 6-digit hex. With several input colors the CSS variables are numbered --color-1-, --color-2- and so on. Any other color format works as input too: hex, rgb(), hsl(), hsv(), cmyk() or a CSS color name.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.