Tool

Accessible Color Palette Generator

Generate palettes where every color is guaranteed to have accessible contrast against your background.

About the Accessible Palette Generator

Most palette generators focus only on aesthetics (harmonies, shades, tints). This tool focuses on usability and accessibility. It allows you to select a background color and instantly generate a suite of foreground colors that strictly adhere to WCAG (Web Content Accessibility Guidelines) contrast requirements.

How to build your palette

  1. Set your Background: Enter your app's primary surface color (e.g., a dark slate or a pure white).
  2. Select your Target: Choose WCAG AA (4.5:1) for standard text, or AAA (7.0:1) for maximum readability.
  3. Curate: Lock the colors you like and regenerate the rest. The algorithm ensures all new colors mathematically pass the contrast test.

The math behind the colors

The tool calculates relative luminance for your background color and then uses binary search to adjust the lightness of newly generated hues until their relative luminance creates a contrast ratio that meets or exceeds your selected threshold.

Frequently Asked Questions