Color Shades Generator
Pick any color to get its tints and shades, from almost white to almost black, in even steps. Click a swatch to copy its hex code, or export the whole scale as CSS, Tailwind, or JSON.
Tint toward / Shade toward blend to any color instead of white and black (in the lock modes only its lightness is used). How far sets how close the last step gets to that color. Hue shift above zero warms the tints and cools the shades, below zero does the opposite.
How to use the color shades generator
- Type or paste a hex code into Base color, or click the swatch to open the picker. Random gives you a fresh color to explore.
- Set Steps anywhere from 3 to 12 to control how many tints and shades you get.
- Choose a Mix to change how the steps are blended. Perceptual is the default, and the info icon next to Mix explains each option.
- Click any swatch to copy its hex. The base color’s HEX, RGB, and HSL values are buttons too.
- Use Export on a row to copy it as CSS variables, SCSS, a Tailwind config, or JSON, or Edit to open it in the palette editor.
- Open Advanced if you want more control: blend toward your own colors instead of white and black, stop short of the ends, or shift the hue warmer or cooler as the steps change.
The page URL updates as you go, including your mix and Advanced settings, so you can bookmark or share the exact scale you were working with.
Tints, shades, and tones explained
A tint is a color mixed with white, which makes it lighter. A shade is a color mixed with black, which makes it darker. Mix in gray instead and you get a tone, a softer and less saturated version. All three are core color wheel ideas for building depth from a single hue.
Tints feel airy and work well for backgrounds, hover states, and large surfaces. Shades feel grounded and suit text, borders, and depth. Used together they give you a full range of a color without bringing in a second hue.
How the tints and shades are calculated
There’s more than one way to mix a color with white or black, and each gives a slightly different ramp. Pick the one that fits your palette from the Mix menu.
Perceptual (OKLab)
The default. It blends in the OKLab color space, which is built to match how your eye sees lightness, so each step looks evenly spaced instead of bunching up in the middle. The trade-off is that the hue can drift a few degrees and saturated colors get a little softer as they lighten.
Classic (RGB mix)
A straight blend of the red, green, and blue values, the same math as the mix() function in Sass. The hue stays exactly the same at every step, but colors lose saturation and can look grayer in the middle of the ramp.
Chroma lock (OKLCH)
Keeps the hue and the relative chroma fixed and only changes lightness. Relative chroma is how colorful a color is compared to the most colorful version a screen can show at that lightness. A muted brown stays just as muted in every tint and shade, and a vivid blue stays vivid. Bright colors can look a touch more saturated in the lighter steps, because screens can show more color there.
Saturation lock (HSL)
Keeps the HSL hue and saturation numbers fixed and only moves HSL lightness toward 100% or 0%. The result is bright and punchy, though the steps can look uneven because HSL lightness doesn’t match how the eye sees it.
Whichever mix you choose, the first swatch in each row is your base color, and the endpoint (pure white and black, or the colors you set in Advanced) is left off since you already have it.
Advanced options
- Tint toward and Shade toward replace white and black with any color, like a warm cream for highlights or a deep navy for shadows. In the two lock modes only that color’s lightness is used, so the lock still holds.
- How far sets how close the last step gets to that color, from 50% to 100%, so the lightest and darkest steps stay usable.
- Hue shift rotates the hue as the steps move away from your base, up to 45 degrees. Positive values warm the tints and cool the shades, a trick painters and illustrators use for more natural light and shadow. Negative values do the opposite.
Not sure which mix to use? Click Compare all 4 mixes under the swatches to see them side by side for your color.
Build a Tailwind or design-system color scale
Export scale at the top of the tool builds an 11-step scale labelled 50 to 950, the same naming Tailwind CSS uses. Your base color sits at 500, five tints fill 50 to 400, and five shades fill 600 to 950. It follows your Mix and Advanced settings. Copy it as CSS variables, SCSS, a Tailwind config, or JSON.
Your brand color might naturally be quite light or quite dark, so check that 500 lands in a sensible spot. If it doesn’t, open the scale in the palette editor and adjust individual steps.
How to use tints and shades in your designs
- Interface states: a slightly darker shade for hover, a darker one again for active or pressed.
- Backgrounds and borders: the lightest tints make quiet panels, and the next few steps make borders that match.
- Depth: layer tints and shades to suggest shadows and raised surfaces without falling back to flat black or gray.
- Charts and maps: a single-hue light-to-dark ramp reads clearly as a sequential scale.
- Readable text: the Aa badges on each swatch show whether white or black text passes WCAG AA (4.5:1) or AAA (7:1). For a specific pair, use the contrast checker.
Frequently asked questions
How many shades should I generate?
For most interface work, 5 to 7 steps is plenty. For a full design-system scale, use 10 or more so you have room for backgrounds, borders, text, and hover states, or use Export scale for a ready-made 50 to 950 set.
What’s the difference between a shade and a hue?
Hue is the color family itself, like red, blue, or green. A shade keeps the same hue but makes it darker. Every swatch this tool makes stays close to your base color’s hue, unless you turn on Hue shift in Advanced.
Why do my tints look grayer than my base color?
Mixing with white or black always pulls some saturation out, and the Perceptual and Classic mixes show it most. If you want every step to stay as colorful as your base, switch the Mix to Chroma lock. For the boldest result, try Saturation lock.
Can I make a palette between two different colors?
Yes. Use the gradient palette generator to get evenly spaced steps between any start and end color, or the gradient maker for a smooth CSS gradient.
Where can I see more details about my color?
Click Color details in the tool to open the color’s page in the color picker, with format conversions, contrast checks, and matching palettes.