Home › Image Tools › Color Shades Generator

Color Shades Generator

Pick or paste one color to get a balanced 11-step scale from 50 to 950, the way design systems like Tailwind CSS build their palettes, plus classic tints, shades and tones. Every swatch shows its contrast, copies with one click and exports to Tailwind, CSS variables, SCSS or JSON.

Last updated:

Method

Color scale 50 – 950 · click a swatch to copy

Tints mixed with white, 0 – 90%

Shades mixed with black, 0 – 90%

Tones mixed with grey #808080, 0 – 90%

Export


    
Advertisement

How to use the Color Shades Generator

  1. Choose a base color with the picker or type a HEX code such as #3b82f6 (rgb() and color names work too).
  2. Pick the method: OKLCH gives even-looking steps; HSL matches older tools.
  3. Name the color (for example primary or brand) so the export uses that name.
  4. Press Generate or just edit the color; the scale, tints, shades and tones update live. Click a swatch to copy it.
  5. Export: choose Tailwind, CSS, SCSS or JSON, then copy the code or download the file.

How the 50–950 scale is built

Modern design systems describe each color as a ladder of steps. Tailwind CSS, for example, names them 50, 100, 200 … 900 and 950, where 50 is almost white, 500 is the "main" color and 950 is almost black. This generator gives every step a target lightness in the OKLCH color space and keeps the hue of your color the whole way down:

Step50100200300400500600700800900950
OKLCH lightness97%94%89%81%70%62%55%49%42%38%28%
Chroma (relative)8%16%30%52%80%100%98%90%78%65%45%

Your color is placed on the step with the closest lightness and kept exactly as typed. Lighter steps are spread evenly between your color and white, darker steps between your color and black. Chroma (colorfulness) is lowered near the ends of the ladder so the palest and darkest steps do not look neon, and any color that falls outside the sRGB screen gamut has its chroma reduced until it fits, without changing its lightness or hue.

Tints, shades and tones: the formulas

The three classic rows mix your color with white, black or mid-grey in the sRGB channels. For each red, green and blue value c and a mix amount t from 0 to 0.9:

  • Tint = c + (255 − c) × t
  • Shade = c × (1 − t)
  • Tone = c + (128 − c) × t

Worked example with #3b82f6 (59, 130, 246) at 50%: the tint is (157, 193, 251) = #9dc1fb, the shade is (30, 65, 123) = #1e417b and the tone is (94, 129, 187) = #5e81bb. Values are rounded to the nearest whole number.

Contrast labels explained

Each swatch shows the WCAG 2 contrast ratio of its text color (white or black, whichever is stronger) against the swatch. The ratio is (L1 + 0.05) ÷ (L2 + 0.05), where L1 and L2 are the relative luminances of the lighter and darker colors.

LabelRatioGood for
AAA7 : 1 or moreBody text for everyone, including low vision
AA4.5 : 1 or moreNormal body text and buttons
AA183 : 1 or moreLarge text only (18 pt, or 14 pt bold) and icons
Failunder 3 : 1Decoration only, not for text

A common pattern is to use steps 50–200 for backgrounds, 500–600 for buttons with white text, and 700–900 for text on light backgrounds.

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 grey. Tints get lighter, shades get darker and tones get duller while keeping roughly the same lightness.

How are the 50 to 950 steps chosen?

Each step has a target lightness similar to the default Tailwind CSS palette, from about 97% lightness at 50 to about 28% at 950. Your color is placed on the step whose lightness is closest to it, and the other steps are spread evenly towards white and black from there.

Why use OKLCH instead of HSL?

OKLCH is a perceptual color space: equal changes in its lightness look like equal changes to the eye, and hue stays stable as colors get lighter or darker. HSL lightness is not perceptual, so yellow at 50% looks much lighter than blue at 50%, and its steps can look uneven.

Is my exact color in the scale?

Yes. Your color is used unchanged on its natural step (shown with a dot), or on 500 if you choose Always 500. The other steps are generated around it.

What do the AA and AAA labels mean?

They are WCAG 2 contrast levels for text drawn on the swatch in the label color (white or black). AA needs a contrast ratio of at least 4.5:1 for normal text, AAA needs 7:1. Large text only needs 3:1 for AA, shown as AA18.

How do I use the palette in Tailwind CSS?

For Tailwind v3 paste the exported object into theme.extend.colors in tailwind.config.js. For Tailwind v4 paste the @theme block into your main CSS file. Then use classes like bg-primary-500 or text-primary-900.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Color Palette GeneratorGenerate beautiful color palettes and export them.HEX to RGBConvert HEX colors to RGB and other formats.Color Contrast CheckerCheck WCAG contrast ratios and find accessible text colors.HEX to HSLConvert HEX colors to HSL and back with interactive sliders.Color MixerMix two colors in sRGB, linear, OKLab or OKLCH, or blend them with Photoshop-style modes.Color Perception TestFind the one tile with a different shade. The grid grows and colors get closer each level.Color WheelFind complementary, triadic, analogous and other color harmonies on an interactive wheel.CSS Gradient GeneratorDesign linear, radial and conic CSS gradients with draggable stops and export CSS or PNG.RGB to HEXConvert RGB to HEX with sliders, live swatch and one-click copy.RGB to CMYK ConverterConvert RGB and HEX colors to CMYK for print, and back.Pantone to HEXLook up approximate HEX, RGB and CMYK values for Pantone colors.Color Name FinderFind the closest color name for any HEX or RGB color.Color Blindness SimulatorSee any image as people with protanopia, deuteranopia, tritanopia or achromatopsia see itImage Color PickerPick any pixel colour from an image and get HEX, RGB, HSL plus a paletteColor PickerPick any color and get HEX, RGB, HSL, HSV and CMYK codes, shades and a screen eyedropper.HTML Color CodesAll 140 HTML color names with HEX and RGB codes, plus the 216 web-safe colors. Click to copy.Color Palette from ImageExtract the main colors of any photo as HEX codes, CSS variables and a palette PNG.Replace Color in ImageClick a color in a picture and swap it for a new color or transparency, keeping the shading.CMYK to RGBConvert CMYK percentages to RGB and HEX color codes with sliders and a live preview.HSL to HEXConvert HSL and HSLA colors to HEX and RGB with sliders and a live preview.HEX to RGBAConvert HEX color codes to CSS rgba() with an opacity slider and one-click copy.RGBA to HEXConvert rgba() colors to 8-digit HEX, or flatten transparency onto any background.HEX to CMYKConvert HEX color codes to CMYK percentages for print, with a live preview.HEX to PantoneFind the 5 closest Pantone-style solid coated colors for any HEX or RGB, ranked by Delta E.Color Temperature to RGBConvert a color temperature in kelvin (1000-40000 K) to RGB and HEX with a live swatch.RAL to HEXLook up RAL Classic codes as HEX, RGB and CMYK, search by name or find the nearest RAL.RGB to HSLConvert RGB values to HSL, HSV and HWB with a live swatch and copy-ready CSS.Color Code ConverterConvert a color between HEX, RGB, HSL, HSV, CMYK, LAB, LCH and OKLCH with a live swatch.Room Paint Color VisualizerUpload a room photo, select the walls and preview any paint color or HEX with real lighting.Photo to Pop ArtMake Warhol-style pop art from a photo: posterized color tiles in 1, 4 or 9 grids with custom palettes.Screen Color PickerPick any pixel color from anywhere on your screen and copy it as HEX, RGB or HSL.Solid Color Image GeneratorMake a plain single-color or transparent image in any size, like 1920x1080, as PNG or JPG.White Balance CorrectorFix color casts: click a neutral gray point or use auto gray world, then fine-tune temperature and tint.CMYK to HEXConvert CMYK percentages to a HEX color code and RGB, with a live swatch and shades.Photo Color MatchCopy the color grading of a reference photo onto your image (Reinhard color transfer).Underwater Photo Color CorrectionRestore lost reds and remove the blue or green cast from underwater photos by depth.
See all 38 Color Tools →