Color Ramp Generator

Generate and analyze color ramps for design systems with accessibility in mind. Instantly check contrast, export palettes, and ensure WCAG compliance.

How the Color Ramp Generator Works

The generator creates color ramps based on contrast ratio targets against a background color.

The Algorithm Explained

How to Use the Generator

  1. Set Background Color: Choose the background color that your ramp will be used against (usually white or black).
  2. Define Contrast Targets: Set the contrast ratios you want to achieve. Common targets: 1.5, 3, 4.5, 7, 21.
  3. Add Reference Colors: Provide specific colors you want to include in the ramp. These will be preserved exactly.
  4. Lock Important Colors: Use the lock icon to prevent specific colors from being modified during generation.
  5. Generate and Review: Click "Generate Ramp" to create your color ramp and add it to your collection.

Understanding the Preview

Don't worry if actual ratios don't exactly match targets - the algorithm prioritizes creating usable, visually pleasing color ramps.