Color Palette
Design Made Easy
Create harmonious color schemes, extract palettes from images, and check accessibility contrast. 100% client-side - no data transmitted.
Color Palette Generator Tool
Base Color
Extract from Image
Drop image here or click to upload
Generated Palette
Click a color or format pill to copy. Use the lock icon to preserve colors when regenerating.
Contrast Checker (WCAG)
Contrast Ratio
Excellent contrast! This color combination is accessible for all text sizes.
The quick brown fox jumps over the lazy dog
Preview of text on background
Common Use Cases
Website Design
Generate consistent color schemes for websites and web applications with export to CSS variables.
App UI Design
Create harmonious color palettes for mobile apps with proper accessibility contrast.
Brand Identity
Develop cohesive brand color systems starting from a primary brand color.
Image-Based Design
Extract color palettes from photos or artwork for mood boards and design inspiration.
Accessibility Testing
Verify WCAG contrast requirements for text and background color combinations.
Developer Integration
Export palettes as CSS, SCSS, Tailwind config, or JSON for quick integration.
Color Harmony Types
Complementary
Two colors opposite on the wheel. High contrast, vibrant.
Analogous
Adjacent colors on the wheel. Harmonious and pleasing.
Triadic
Three colors evenly spaced. Balanced and colorful.
Tetradic (Square)
Four colors evenly spaced. Rich, diverse palette.
Split-Complementary
Base plus two adjacent to complement. Softer contrast.
Monochromatic
Shades and tints of one hue. Clean, cohesive look.
Double-Complementary
Two pairs of complementary colors. Dynamic and bold.
Compound
Combination of complementary and analogous. Versatile.
Shades
Darker versions of the base color. Professional depth.
Tints
Lighter versions with added white. Soft and airy.
Tones
Different saturation levels. Muted to vivid range.
Neutral
Low saturation colors. Elegant backgrounds, text.
Pastel
Soft, light colors. Gentle and calming aesthetic.
Vibrant
High saturation, bold colors. Energetic and striking.
Warm
Reds, oranges, yellows. Cozy and inviting feel.
Cool
Blues, greens, purples. Calm and refreshing mood.
Pro Tip: Link directly with ?color=#ff5500 or ?harmony=triadic - auto-generates on page load!
Frequently Asked Questions
Yes! Use URL parameters to pre-fill settings and auto-generate. Add ?color=#ff5500 to set the base color or ?harmony=triadic to select a harmony type. Combine them like ?color=#3b82f6&harmony=complementary. The palette generates automatically when the page loads. Perfect for bookmarks or sharing specific color schemes.
This tool supports 16 color harmony types organized into three categories. Classic Harmonies: Complementary (opposite colors), Analogous (adjacent), Triadic (three evenly spaced), Tetradic/Square (four evenly spaced), Split-Complementary (base plus two adjacent to complement), Monochromatic (shades of one hue), Double-Complementary (two complementary pairs), and Compound (mix of complementary and analogous). Variations: Shades (darker versions), Tints (lighter with white), Tones (saturation variations), and Neutral (low saturation grays). Moods: Pastel (soft and calming), Vibrant (bold and energetic), Warm (reds/oranges/yellows), and Cool (blues/greens/purples).
Upload any image by dragging it to the drop zone or clicking to select a file. Then click "Extract Colors" to analyze the image and generate a palette of the 5 most dominant colors. The extraction uses color quantization to find distinct, representative colors from your image.
Basic formats - Best for everyday use:
- HEX (#RRGGBB) - Universal format, works everywhere
- RGB - Red, green, blue values (0-255)
- HSL - Hue, saturation, lightness - intuitive for adjusting colors
With Alpha - When you need transparency:
- RGBA/HSLA - Same as above but with alpha channel for opacity
Modern (Perceptual) - For advanced color work:
- OKLCH (Recommended) - Best for creating smooth gradients and perceptually uniform color scales. MDN Docs
- OKLab - Perceptually uniform color space, great for color manipulation. OKLab Article
- LCH/Lab - Older perceptual color spaces, still useful but OKLCH is preferred
Your preferred format is saved and used globally across the tool and in all exports.
The contrast checker calculates the luminance ratio between foreground and background colors according to WCAG 2.1 guidelines. It shows pass/fail for AA (4.5:1 normal, 3:1 large text) and AAA (7:1 normal, 4.5:1 large text) levels, helping ensure your color combinations are accessible to users with visual impairments.
Export your palette in four formats: CSS custom properties (--color-1, etc.), Tailwind CSS configuration for your tailwind.config.js, SCSS variables ($color-1, etc.), or JSON with complete color data including HEX, RGB, and HSL values for each color.
No. All processing happens entirely in your browser using JavaScript. Your colors, images, and palettes never leave your device. The tool works completely offline after the page loads - no server communication is required.
Yes! Click the lock icon on any color in your palette to keep it fixed when generating new colors. This lets you preserve colors you like while experimenting with the rest of the palette. Locked colors stay in place regardless of the harmony type selected.
The tool supports all common image formats that browsers can display: JPEG, PNG, GIF, WebP, BMP, and SVG. Simply drag and drop your image or click to upload. The color extraction algorithm analyzes the image to find the most dominant and distinct colors.
Click the color swatch to copy your preferred format, or click any format pill (HEX, RGB, HSL, OKLCH, etc.) to copy that specific format. Your preferred format is remembered between sessions and also used when exporting to CSS, Tailwind, SCSS, or JSON.
WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios for readability. Level AA requires 4.5:1 for normal text and 3:1 for large text (18px+ or 14px bold). Level AAA requires 7:1 for normal text and 4.5:1 for large text. Our contrast checker tests both levels so you can ensure your designs are accessible.
Why We Built This Color Palette Generator
Choosing the right colors for a project can make or break a design. Whether you're building a website, designing an app, or creating brand materials, a harmonious color palette is essential. But understanding color theory and manually calculating complementary or triadic colors is time-consuming and error-prone.
Our Color Palette Generator automates the process of creating professional color schemes. Simply pick a base color, choose a harmony type, and instantly get a mathematically perfect palette. Need inspiration from a photo? Upload any image and extract its dominant colors. Want to ensure accessibility? Use the built-in WCAG contrast checker to verify your text is readable.
Like all tools on RJL.io, this color palette generator runs entirely in your browser. Your colors and images are never uploaded to any server. It's fast, private, and works offline. Export your palettes directly to CSS, Tailwind, SCSS, or JSON and integrate them into your project in seconds.
Building a complete design system? Check out our other CSS tools: the CSS REM Converter for responsive typography, SVG URL Encoder for inline SVG backgrounds, and Pretty Print to format your CSS beautifully. For design assets, use our QR Code Generator to create branded QR codes with your new palette colors.