Color Palette & WCAG Contrast

Convert HEX↔RGB↔HSL and generate harmonious color palettes.

📖 Guide & FAQs

Mastering Color Theory & Palette Generation: Harmonious Web Design Systems

Generate cohesive color systems, verify WCAG contrast accessibility, lock favorite swatches, and export CSS variables 100% locally in your browser.

Frequently Asked Questions

What does the Lock feature do?

Clicking the lock icon on any color swatch pins that exact hue. When you press Spacebar or click Generate Palette again, locked colors remain untouched while all unlocked slots adapt harmoniously around them.

How are the WCAG contrast ratios calculated?

We compute the relative luminance of foreground and background colors following the official W3C WCAG 2.1 mathematical formula: (L1 + 0.05) / (L2 + 0.05), where L is relative luminance.

Can I copy the palette directly into Tailwind CSS?

Yes! Click the 'Export' menu and select 'Copy Tailwind Config' to receive a pre-formatted JavaScript object ready to paste into your tailwind.config.js theme colors.

Can I share a generated palette with a coworker?

Yes. Click 'Copy Shareable URL' from the Export menu. The entire 5-color palette state is encoded directly into the browser URL hash without requiring a database.