01What is Color Shade Generator?
Design systems rarely use one blue. They use a ramp: a pale tint for backgrounds, a mid tone for buttons, a deep shade for text on light surfaces. This generator builds that ramp from a single base color so you have a starting point in seconds. The method is simple and easy to predict. Your hex code is converted to HSL using the standard formula from the CSS Color Module Level 4 spec. The tool keeps the hue and saturation and throws away the original lightness. It then spaces lightness evenly from 95 percent at the light end to 5 percent at the dark end, and converts each step back to an uppercase hex code. You choose 5, 10, 12 or 15 steps. Each step gets a weight label between 50 and 950, spread across the count you picked. This is where it differs from Tailwind. With 10 steps you get 50, 150, 250 and so on up to 950, not Tailwind's 50, 100, 200 naming. With 5 steps you get 50, 275, 500, 725 and 950. The CSS Variables block writes lines like --color-50: #E7EFFE; using those labels. A worked example helps. Start with #3B82F6 and 10 steps. The ramp runs #E7EFFE, #B6D0FC, #85B1F9 and so on down to #010A18. Notice that #3B82F6 itself never shows up. Its lightness is about 60 percent, and the 10 step ladder lands on 65 and 55 instead. With 5 steps the middle sits at exactly 50 percent. That reproduces a base color only when the base already has 50 percent lightness, like pure #FF0000. Now the limits. HSL lightness is not perceptual, so a yellow and a blue at the same value look very different in brightness. For ramps tuned by eye or by a perceptual model such as OKLCH, you'll need to adjust steps by hand. Because the base lightness is ignored, #000000 and #808080 give the same gray ramp. The tool does not check contrast ratios either. The ramp is computed on the page as you change the inputs. Nothing is stored, and clicking a swatch only writes its hex to your clipboard.
Front-end developers and design system maintainers who need a first-draft lightness ramp for a brand color before tuning it by eye. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Color Shade Generator
- Set the Base Color with the picker or type a hex code such as #3B82F6 or #38F
- Choose the number of Steps: 5, 10, 12 or 15
- Look over the color strip and the list of swatches with their hex and lightness values
- Click a swatch to copy its hex, or click Copy All for every label and hex pair
- Copy lines from the CSS Variables block and rename them to fit your tokens
03Worked examples
- Input:
#3B82F6, 10 steps - Result:
50: #E7EFFE, 150: #B6D0FC, 250: #85B1F9, 350: #5492F7, 450: #2473F5, 550: #0A5ADB, 650: #0846AB, 750: #06327A, 850: #031E49, 950: #010A18 - Lightness steps by 10 points from 95% to 5%. The base sits near 60% lightness, so it falls between 350 and 450 and does not appear.
- Input:
#FF0000, 5 steps - Result:
50: #FFE5E5, 275: #FF7373, 500: #FF0000, 725: #8C0000, 950: #1A0000 - Pure red has 50% lightness, which is exactly the middle step of a 5 step ramp, so the input reappears at 500.
- Input:
#8B5CF6, 5 steps - Result:
50: #EEE7FE, 275: #A07AF8, 500: #530DF2, 725: #2E0785, 950: #080118 - The 500 step is not the input. The base has about 66% lightness, while step 500 is forced to 50%.
- Input:
#000000, 5 steps - Result:
50: #F2F2F2, 275: #B9B9B9, 500: #808080, 725: #464646, 950: #0D0D0D - Black has no hue or saturation, and its lightness is ignored. #808080 produces this exact same ramp.
- Input:
#10B981, 12 steps - Result:
50: #E8FDF6, 132: #C1FAE7, 214: #9BF6D8, ... 868: #053E2B, 950: #021710 - Trimmed to the ends. With 12 steps the labels fall on uneven numbers like 132 and 214.
04Common use cases
- Sketching a primary color ramp for a new design system from one brand hex code
- Picking a pale background tint and a darker hover shade for a button that uses a brand color
- Generating a quick accent scale to paste into a Tailwind theme, then renaming the keys
- Writing CSS custom properties for a theme file in a plain CSS project
- Comparing how 5, 10, 12 or 15 steps change the spacing between neighboring shades
- Checking how a brand color looks near the very light and very dark ends before committing to it
05Tips
- If the text box shows a red note, your hex is invalid and the ramp still shows the last valid color. Fix the code before you copy anything.
- Your exact brand color usually won't appear in the ramp. Drop it in by hand at the step whose lightness is closest.
- The labels are spread from 50 to 950, so 10 steps give 150 and 250 rather than 100 and 200. Rename them before mixing with Tailwind's built-in scales.
- Very dark or very light base colors don't change the result. Only hue and saturation matter, so black, white and mid gray all give the same gray ramp.
06Related concepts
HSL, Tints and shades, Color scale, Design tokens, CSS custom properties.
Frequently Asked Questions
What is Color Shade Generator?
Color Shade Generator is a free, browser-based developer tool on AIDToolStack. Generate shades and tints from a base color It requires no installation or sign-up and works entirely in your browser.
Is Color Shade Generator free to use?
Yes. No sign-up, no fees and no usage cap.
Does Color Shade Generator store my data?
No. It runs in your browser; nothing is uploaded.