How to Build an Accessible Colour Palette (And the Test That Means Nothing)
A palette that looks pleasant and cannot carry text is useless, and almost no generator tells you which of its swatches can. Two specific contrast questions do the work.
Pick a base colour and a scheme. You get the swatches, an SVG strip, CSS custom properties, and each swatch's contrast against white and black.

Workflow Lifecycle & Pipeline
Visual execution flow showing how Color Palette Generator processes data directly in your local browser sandbox.
Color Palette Generator Interactive Process Pipeline
Fast, zero-latency execution directly in your browser memory.
Before You Start
Ensure your source assets and browser environment meet the verified execution requirements.
Step-by-Step Instructions
Follow these verified steps to execute the task with Color Palette Generator.
Enter base colour
Fill in base colour, scheme and swatches. Each starts at a usable value, so you can change one and leave the rest.
Base colour #4F46E5 · Scheme Analogous · Swatches 53 fields read as you typeWatch the result change
There is no button on Color Palette Generator: the result follows the input as you change it.
Updates as you typeColor Palette Generator runs on your deviceCopy the answer
The answer sits at the top of the result panel with a copy button beside it. It never left your browser.
Copy the figureOn your clipboardUnder the Hood: Canvas & Lossy Transform Encoding
When you process images with Color Palette Generator, calculations execute directly in your browser's dedicated Web Worker via the OffscreenCanvas API. Lossy algorithms convert pixel matrices into the frequency domain using Discrete Cosine Transform (DCT) and Chroma Subsampling (4:2:0), removing imperceptible high-frequency color variations to compress payload size by up to 90% without visible degradation.
Frequency Domain Quantization
DCT decomposes 8x8 pixel blocks into spatial frequencies, discarding subtle chroma information the human eye cannot resolve.
Browser-Native Memory Isolation
Images are read as raw ArrayBuffers in client RAM. No byte stream is ever transferred across the public internet.
Fast LCP & Core Web Vitals
Optimized payloads load 3-5x faster on mobile networks, dramatically reducing Largest Contentful Paint (LCP).
Settings & Options Explained
Fine-tune quality, format, and compression parameters for your exact workflow.
Settings & Configuration Guide
| Setting | Recommended Value | How It Works & Impact |
|---|---|---|
| Base colour | #4F46E5 | Takes a colour. Impact: Read as written, so stray spaces and characters count. |
| Scheme | Analogous | Takes one of Analogous, Complementary, Split complementary, Triadic, Tetradic, Monochromatic ramp, Tints or Shades. Impact: Each option is a different scheme; switching it changes the result, not the speed. |
| Swatches | 5 | Used by the analogous and single-hue schemes; the fixed schemes have their own count. Takes a number from 3 to 12. Impact: The control runs from 3 to 12; 12 is as far as it goes. |
Best Practices & Key Considerations
Avoid common quality pitfalls and maximize output performance.
Expert Recommendations
- The worst-case contrast against black-or-white over the whole colour space is 4.58:1, so every colour passes that test. A tool reporting it is reporting nothing. The two useful questions are: can this be read as text on white, and can white text be read on top of it.
- A colour can fail as text on white and work perfectly as a filled button with white text. That is the commonest useful case, which is why both figures are given.
- HSL is the arithmetic every wheel scheme is defined in, and it is not perceptually uniform. Yellow at 50% lightness is far brighter to the eye than blue at 50%, so equal-L swatches can look wildly uneven.
- A single-hue ramp plus one accent is the most robust basis for an interface, because lightness differences survive every form of colour blindness and every cheap screen.
- Taper the saturation at both ends of a ramp. Holding it constant reads as washed-out pastel at the light end and muddy at the dark end.
- Complementary schemes used fifty-fifty vibrate. One dominant colour with the complement as an accent is what the proportion advice is really about.
- Analogous schemes have the opposite failure: too similar to distinguish, especially for the roughly 8% of men with a red-green deficiency. Never let hue alone carry meaning.
Common Mistakes to Avoid
- Expecting Swatches to go past 12 — 3 to 12 is the range the control offers.
- Leaving Scheme on Analogous when Complementary or Split complementary was wanted.
- Assuming the input is sent somewhere — Color Palette Generator runs in this tab, and nothing you enter leaves it.
Troubleshooting & Fixes
Quick solutions for common browser constraints, format issues, and edge cases.
Troubleshooting & Common Issues
Swatches will not go above 12
Possible Cause: The control runs from 3 to 12.
The answer is right but not in the form you wanted
Possible Cause: Scheme is set to Analogous, and it decides that.
Frequently Asked Questions
Everything you need to know about formats, privacy, and browser support.
Related Step-by-Step Guides
Explore companion workflows, optimization techniques, and verified tutorials.