About the Color Shades Generator
A single brand color is rarely enough for a website or app, which needs lighter backgrounds, darker hover states and borders in between. This color shades generator turns one color into a complete family of tints mixed with white, shades mixed with black and tones mixed with gray, in as many steps as you like, plus a 50 to 950 scale in the style used by modern design systems, ready to copy as CSS variables or a Tailwind configuration.
It also builds a design scale from 50 to 950, the format used by Tailwind CSS and most design systems. The scale is calculated in the perceptual OKLCH color space, so each step looks evenly lighter or darker than the next, and the chroma is reduced towards the very light and very dark ends so the colors stay natural and inside the range of ordinary screens. Your original color is placed at the step that matches its lightness.
Copy the scale as CSS custom properties, Sass variables, a Tailwind CSS configuration object or JSON, with your own color name. That gives you consistent hover states, backgrounds, borders and text colors from a single brand color, and makes it easy to add a new color to an existing design system.
To convert colors between formats, use the color converter. To check that text on these backgrounds stays readable, try the color contrast checker, and to combine two colors, the color mixer.
How to use the Color Shades Generator
- Enter a base colorType a HEX code, rgb() value or name, or use the color picker.
- Choose the stepsSet how many tints, shades and tones to show.
- Copy swatchesClick any swatch to copy its HEX code.
- Export the scaleName the color and copy the 50 to 950 scale as CSS, Sass, Tailwind or JSON.
Color Shades Generator features
- Tints, shades and tones in 3 to 20 steps
- 50 to 950 scale in perceptual OKLCH
- Base color placed at the matching step
- Chroma tapered at the extremes
- Click a swatch to copy it
- CSS variables, Sass, Tailwind or JSON
- Custom color name
- Accepts HEX, rgb, hsl and names
Common uses
- Building a brand color scale for a design system
- Finding hover and active colors for buttons
- Creating light backgrounds and dark text from one color
- Adding custom colors to a Tailwind CSS theme
- Exploring color variations for illustrations
Shade scales in practice: turning a brand teal into a working scale, button and alert states, dark mode, charts and handing over to designers
A single brand colour is not enough to build an interface. Buttons need hover and pressed versions, alerts need pale backgrounds and darker text, and dark mode needs its own mapping. A shade scale from very light to very dark provides all of these from one colour. This guide turns a teal into a working scale and shows which steps to use for each job.
A worked example: a teal scale
A health clinic's brand teal is #0F766E. Generating a scale from 50 to 950 places it around step 700. White text on it has a contrast of about 5.5 to 1, so it works for buttons. The 50 step, a very pale teal such as #F0FDFA, makes a calm section background, and teal text on that pale background still has a contrast of about 5.3 to 1. Steps 100 and 200 suit borders and hover backgrounds, while 800 and 900 suit headings.
Button states
Using neighbouring steps for interactive states keeps them consistent: the default button at 700, hover one step darker at 800 and pressed at 900. Disabled buttons can use a light step, such as 200, with darker text. Because every button follows the same rule, users learn the pattern instantly.
Alerts and badges
Alerts work well with three steps of the same hue: a 50 background, a 200 border and 800 text. This gives a soft, readable message box. The same pattern applied to green, amber, red and blue scales produces a complete set of success, warning, error and information alerts that look like they belong together.
Dark mode mapping
In dark mode, the scale is used roughly in reverse: dark steps such as 900 and 950 for backgrounds, middle steps for buttons and light steps for text. It is rarely a perfect mirror, so check each pair for contrast and adjust. Keeping the mapping in one place, using custom properties, makes switching themes reliable.
Charts and maps
A shade scale makes a natural sequential palette for charts and maps that show quantities, such as sales by city, from light for low values to dark for high values. Using every second or third step gives clearly distinguishable levels. Include a legend with values, since shades alone are hard to compare precisely.
Use only a few steps
A full scale offers eleven steps, but most interfaces use five or six regularly. Choosing which steps serve which roles, and writing that down, prevents a scattering of nearly identical shades across a site. Unused steps remain available for future needs.
Handing over to designers
Design tools can store each step as a named style, such as teal 50 to teal 950, matching the names in code. When designers and developers use the same names, a request to use teal 100 for a background means exactly the same colour in the design file and on the website.
Checking contrast across the scale
Before using a scale, note which steps pass contrast with white and which pass with near-black. Typically the middle step marks the boundary. Marking passing steps in the documentation saves everyone from checking pairs individually and avoids faint text on light shades.
Common mistakes
- Picking random lighter and darker versions instead of a scale.
- Using light steps for text on white.
- Mirroring the scale for dark mode without checking contrast.
- Using every step and creating visual clutter.
Related tools
To build related hues around the scale, use Color Palette Generator. To verify text on each step, try Color Contrast Checker, and to apply the steps to buttons, CSS Button Generator.
Matching weights across hues
When several hues each have scales, the same step number should look similarly strong across them, so blue 600 and green 600 carry equal visual weight. Scales built in OKLCH achieve this far better than simple mixing, which is why charts and alert sets built from them look balanced.
Two-tone icons and illustrations
Simple icons and illustrations look polished when drawn with two steps of one scale, such as 200 for fills and 600 for outlines. They match the interface automatically, and switching the hue of the scale recolours every illustration consistently.
Pale tints in print
Very light tints, such as step 50, can almost disappear when printed, especially on off-white or uncoated paper. If printed materials use pale backgrounds from the scale, test them on the actual paper and choose a slightly stronger step if needed.
Scales for status colours
Generate scales for success, warning, error and information colours as well as the brand colour. Using the same step structure for all of them means alerts, badges and charts follow one consistent system, and new components can be designed quickly without inventing colours.
Revisiting the scale later
If the brand colour changes, regenerate the scale from the new colour rather than adjusting steps individually. Components that refer to step names update automatically, and checking a few key pages confirms that buttons, alerts and backgrounds still look balanced with the new hue.
Privacy
Scales are generated in your browser. Nothing is uploaded or stored.
Frequently asked questions
What is the difference between tints, shades and tones?
A tint is a color mixed with white, a shade is a color mixed with black, and a tone is a color mixed with gray. Tints are lighter, shades darker, and tones are softer and less saturated than the original.
How is the 50 to 950 scale made?
Each step has a fixed target lightness in the OKLCH color space, from very light at 50 to very dark at 950, with the hue of your color and a chroma that tapers towards both ends. The step closest to your color uses your exact color.
Why use OKLCH instead of plain RGB mixing?
Mixing in RGB changes perceived lightness unevenly, so some steps look like big jumps and others barely differ. OKLCH lightness follows human perception, which makes the steps of the scale look evenly spaced.
How do I use the scale in Tailwind CSS?
Choose the Tailwind format, copy the object and paste it under theme.extend.colors in your Tailwind configuration. You can then use classes such as bg-brand-100 or text-brand-700 in your markup.
Which steps should I use for text and backgrounds?
Light steps such as 50 to 200 suit backgrounds, middle steps such as 500 and 600 suit buttons and links, and dark steps from 700 to 950 suit text. Always check contrast for text on colored backgrounds.
Can I copy a single color?
Yes. Click any swatch in the tints, shades, tones or scale rows and its HEX code is copied to your clipboard immediately, ready to paste into your design tool or stylesheet.
Is anything uploaded?
No. All colors are calculated by code running in this page on your own device. Nothing is sent to a server or stored. You can safely use it with unreleased brand colors.