Antpact Toolbox
中文
Home › Utilities & Developer › Palette Generator

Palette Generator

Enter a color to get tonal shades, schemes and contrast — click to copy.

Privacy: this tool runs entirely in your browser — files are never uploaded, and data is gone when you close the page.

How to use

  1. Enter a HEX or RGB color.
  2. See shades, schemes and contrast.
  3. Click any swatch to copy.

FAQ

What are shades?

Shades are one color arranged from light to dark by lightness (50 lightest, 900 darkest), used for UI hierarchy and hover states.

How to use complementary colors?

Complementary colors sit 180° apart on the wheel — high contrast, great for emphasis buttons; watch the area ratio to avoid harshness.

What is the 4.5 contrast rule?

WCAG 2.1 requires body text contrast ≥ 4.5:1 (AA), large text ≥ 3:1; 7:1 is AAA, best readability.

Can I use the colors in CSS?

Yes — click a swatch to copy HEX, or copy RGB/HSL for CSS variables or style.

Why do some schemes look gray?

When the source saturation is low, rotating hue keeps them gray; raise source saturation for vivid palettes.

About this Palette Generator

Standard HSL math: fixed hue/saturation, lightness ramp for shades; hue-rotation for schemes; WCAG relative-luminance for contrast. Local only.