Skip to main content
Back to Colors generators

Colors

Hex Color Tint & Shade Generator

This color palette generator from hex builds a complete, graduated color scale out of one hex code. Enter your base color and it produces the tints (your color blended toward white) and shades (pushed toward black) on either side of it — a ready-made palette for UI states, design tokens, and component libraries, without manually eyeballing lightness steps. Enter any hex (the default is #3a86ff) and set the number of steps to control how granular the scale gets. Five steps suits a compact component palette; ten gives the fine gradations that Tailwind, Material, and Chakra UI color scales are built on. Because every output derives mathematically from your input, the palette stays on-brand by construction — it is your color at every lightness, not a neighboring hue. Copy any output hex straight into CSS variables, Figma styles, or a JSON token file.

Read the complete guide — 4 min read

How to use

  1. Choose your options above
  2. Click Generate
  3. Copy your result

Detailed instructions

  1. Type or paste your base hex color (e.g., #3a86ff) into the Base Hex Color field.
  2. Set the Steps field to the number of color stops you want — use 5 for a quick palette or 11 to match Tailwind's scale.
  3. Click generate to instantly see the full grid of tints and shades.
  4. Click any swatch or its hex value to copy it to your clipboard.
  5. Paste the copied hex values into your CSS variables, tailwind.config.js, or Figma color styles.

Use Cases

  • Mapping 11 generated stops to Tailwind's 50–950 keys in tailwind.config.js
  • Creating hover, active, and disabled button states from a single brand hex
  • Populating a Figma shared library with a Brand/100 through Brand/900 color group
  • Generating smooth gradient stops for a D3.js or Chart.js data visualization
  • Building light and dark mode CSS custom properties from one base color token

Tips

  • Use a mid-saturation base color around 50–70% saturation; highly saturated colors produce washed-out tints and muddy shades.
  • For dark mode tokens, map your darkest shades (steps 800–900) as surface colors and your lightest tints as text colors — the same scale works both ways.
  • If you need a neutral gray that still feels on-brand, tint a very desaturated version of your brand hue rather than using pure #808080.
  • When building a data viz ramp, use only the tint half or only the shade half so the gradient reads as a single directional progression.
  • Cross-check your 600 and 700 steps against a contrast tool before assigning them as interactive element colors — they're the most likely candidates for accessible buttons and links.
  • Generate scales for both your primary and accent colors with the same step count so numeric keys align and component tokens stay consistent across the whole system.

FAQ

How do I make a color palette from a hex code?

Paste the hex into the base color field, choose how many steps you want on each side, and generate. The tool computes tints by interpolating your color toward white and shades by interpolating toward black, returning the full scale with your original hex in the middle. That single-input workflow is the fastest way to turn one brand color into a complete working palette.

What is the difference between a tint and a shade?

A tint is your color mixed with white (lighter, softer — hover states, backgrounds, subtle fills); a shade is your color mixed with black (darker, heavier — text, borders, pressed states). A third term, tone, means mixing with grey. This generator produces tints and shades symmetrically around your base so the scale covers both directions of use.

How many steps should I use for a Tailwind-style palette?

Tailwind's color scales run from 50 to 950 — eleven stops. Set steps to 5 and you get exactly eleven outputs (five tints, your base, five shades), which map naturally onto that convention with your brand color sitting at the 500 slot. Material and Chakra follow similar ten-to-eleven stop scales, so the same setting covers all three.

Why does my generated scale look washed out or muddy?

Linear blending toward white desaturates, and blending toward black darkens fast — that's inherent to tint/shade math, and it shows most on colors that start desaturated or very dark. If the light end looks chalky, start from a slightly more saturated base and let the tints do the softening. For perceptually-even steps, treat this scale as the draft and nudge the two or three stops you actually use.

Can I use these palettes as design tokens?

Yes — that is the primary use. Paste the outputs into CSS custom properties (--brand-100 … --brand-900), Figma color styles, or a tokens JSON file. Because the whole scale derives from one input hex, regenerating after a brand-color change gives you the updated token set in one click, with the same step structure your components already reference.

You might also like

Popular tools from other categories that share themes with this one.

Try these next

More free tools from other corners of the catalog, picked by shared themes.