Color Palette Generator & Analyzer
Generate beautiful, harmonious colour palettes from any seed colour. Choose from seven harmony rules, view detailed colour values, check WCAG contrast ratios, and export as CSS variables, SVG swatches, or plain text.
Quick presets:
Complementary
5 colors · Click any swatch to copy HEX
Base
rgb(13, 162, 231)
hsl(199°, 89%, 48%)
Base Light
rgb(101, 200, 246)
hsl(199°, 89%, 68%)
Base Dark
rgb(8, 95, 135)
hsl(199°, 89%, 28%)
Complement
rgb(231, 82, 13)
hsl(19°, 89%, 48%)
Complement Light
rgb(246, 147, 101)
hsl(19°, 89%, 68%)
Export
:root {
--color-base: #0da2e7;
--color-base-light: #65c8f6;
--color-base-dark: #085f87;
--color-complement: #e7520d;
--color-complement-light: #f69365;
}Common Use Cases for Color Palette Generator
UI Design & Prototyping
Generate harmonious colour palettes for website and app UI mockups. Use the complementary and analogous rules to create balanced interfaces with proper colour hierarchy.
Tailwind CSS & Design Tokens
Use the Shades 50→900 rule to generate full shade scales for custom brand colours. Export CSS variables and plug them directly into your design system configuration.
Design System Creation
Build a consistent colour system for your design tokens. Generate tetradic and triadic palettes that work together, then export as CSS custom properties for your design system documentation.
Brand Identity & Logos
When building a brand identity, use the split-complementary or analogous rules to find colours that complement your primary brand colour while maintaining visual harmony.
Presentation & Slide Decks
Create cohesive colour schemes for presentations. Use the monochromatic rule to get a range of tints and shades that keep your slides professional and consistent.
Data Visualizations & Charts
Generate accessible colour palettes for charts and infographics. Each swatch includes WCAG contrast badges so you can verify readability against both white and black backgrounds.
Understanding Color Palettes & Harmonies
What is a Color Palette?
A color palette is a curated set of colours that work together harmoniously. In design, colour harmony refers to the aesthetic arrangement of colours based on their relationships on the colour wheel. Common harmony rules include complementary (opposite colours), analogous (adjacent colours), triadic (evenly spaced colours), and tetradic (rectangle-based) arrangements. Good colour palettes create visual hierarchy, convey brand identity, and improve readability and accessibility in designs.
How the Color Palette Generator Works
Enter any hex colour code or use the colour picker to select a base colour. Choose from seven harmony rules - Complementary, Triadic, Analogous, Split-Complementary, Tetradic, Monochromatic, or Shades 50→900. The generator uses proper RGB/HSL colour math to compute the palette swatches. Each swatch displays its HEX, RGB, and HSL values along with WCAG contrast badges showing readability against black and white backgrounds. Click any swatch to copy its HEX code to your clipboard.
Understanding WCAG Contrast Ratings
The WCAG (Web Content Accessibility Guidelines) define contrast ratios for accessible text. A ratio of 3:1 is required for large text (18px+ or 14px+ bold) at AA level, 4.5:1 for normal text at AA level, and 7:1 for AAA level. Each swatch in your palette shows both white and black text contrast badges - green means the colour passes that level, red means it fails. This helps you quickly determine which palette colours work for foreground text on white or black backgrounds.
Privacy, Security & Availability
All colour generation and analysis happens entirely in your browser using JavaScript. No data is uploaded to any server, stored, or shared. The tool is completely free to use with no signup required, no limits on how many palettes you generate, and works offline after the initial page load. Your colour choices never leave your device.
Frequently Asked Questions About Color Palette Generator
What colour harmony rules are available?
How do I copy a colour value?
What do the WCAG contrast badges mean?
Can I generate Tailwind-style colour scales?
What export formats are supported?
How accurate are the colour conversions?
Is this tool free to use?
Can I use this offline?
Related Tools
Voice Recorder & Audio Extractor
Record high-quality audio from your microphone or extract audio from MP4 and WebM video files offline. 100% secure, browser-based utility.
Audio Slicer & Converter
Trim audio clips and convert between MP3, WAV format client-side - Free online audio cutter
ID3 Tag & Metadata Editor
Read and write ID3 tags, album art, artist, and track details directly to MP3 file headers - Free online ID3 tag editor
MP3 Metadata Viewer
View all ID3 tags - title, artist, album, artwork, BPM, and every embedded frame - from any MP3 file instantly in your browser - Free online MP3 metadata viewer