What Is Accessible Palette Generator?
Accessible Palette Generator checks a set of colours against the WCAG contrast thresholds for text and UI elements. For each colour it shows the contrast ratio against a white or a dark background and whether it passes AAA (7:1), AA (4.5:1) or AA for large text (3:1), then exports the set as CSS custom properties. It does not invent colours for you: you choose each one and adjust it until it passes.
How to Use This Tool
Edit the six starter colours or add your own with + Add Color: pick each one with the colour input and give it a name. Choose what to test against, White (#FFF) or Dark (#1A1A2E). Each card shows its ratio and which of AAA, AA and AA-large it passes, and Copy CSS gives you a :root block with one --color-name variable per colour. Everything runs in your browser.
Why Use Accessible Palette Generator?
Checking every colour of a palette one by one in a contrast checker is slow, and switching the background is where mistakes creep in. Here the whole set is re-checked the moment you change a colour or flip between light and dark. It's free and needs no account.
Common Use Cases
Building a brand palette from scratch where the design system needs guaranteed contrast between every text color and its background. Reworking a legacy palette that's accumulated colors over years without an accessibility lens, and needs systematic auditing before a redesign. Producing color variants for state (hover, active, disabled, error, success) that all clear the same contrast bar.
Designing for dark mode and light mode together, where each accent color needs a valid pair against both backgrounds. Creating semantic-color ramps (success, warning, error, info) where the deepest tone needs to be readable as button text and the lightest as a background fill. Validating a color recommended by a marketing team meets the legal accessibility bar before it ships.
Worked example: the six starter colours on both backgrounds
On October 12, 2026 we ran the tool's own contrast function (the WCAG 2.x relative-luminance formula) on its six default colours, against both test backgrounds.
| Colour | On white #FFFFFF | On dark #1A1A2E |
|---|---|---|
| Primary #2563EB | 5.17:1, AA | 3.30:1, large text only |
| Danger #DC2626 | 4.83:1, AA | 3.53:1, large text only |
| Success #16A34A | 3.30:1, large text only | 5.18:1, AA |
| Purple #9333EA | 5.38:1, AA | 3.17:1, large text only |
| Warning #EA580C | 3.56:1, large text only | 4.79:1, AA |
| Teal #0891B2 | 3.68:1, large text only | 4.63:1, AA |
What that shows:
- None of the six passes AA for body text on both backgrounds. A mid-lightness colour sits near the middle of the luminance range, so it can't clear 4.5:1 against both white and near-black. For a light and a dark theme, plan two shades per hue (for example blue-600 on white, blue-400 on dark) rather than one colour for both.
- 3:1 is enough for UI parts and large text, not for body copy. Success green and Warning orange are fine as icon or border colours on white (WCAG 1.4.11 asks 3:1 for UI components), and as text only at 18pt, or 14pt bold, and up.
- The number and the badge agree. WCAG 2.x thresholds are exact. Grey #777777 on white is 4.478:1; until October 13, 2026 the card rounded that to "4.5:1" beside a failing AA badge. Ratios are now shown to two decimals and cut off rather than rounded, so it reads 4.47:1. #767676 (4.54:1) is the lightest neutral grey that passes on white.
The ratio uses the WCAG 2.x formula, which is what current laws and audits refer to. APCA, a contrast method discussed for WCAG 3, scores pairs differently (it depends on which colour is the text), but WCAG 3 is still a Working Draft and sets no conformance requirement.
Sources
Checked on .
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools