Palette and contrast checker
Build a color palette, check every pair with WCAG 2 and APCA, and export it to theme.json.
How to use it
- Pick where you will paste the colors, then enter your primary color, and a secondary and accent if you have them.
- Press Build my palette. Your theme's own color slots appear under the scales, named as your theme names them. Copy each hex into its slot, top to bottom.
- Open a group in Your palette to change any color by hand.
- Pick a text and a background color to see that pair's scores, or scan Every pair for the ones that fail.
- Read the notes for any button color the tool had to darken, then copy the code for your theme or builder.
Frequently Asked Questions
What contrast ratio does WCAG require?
Level AA asks for 4.5:1 for body text and 3:1 for large text. Large means 24px, or 18.66px when bold. Level AAA asks for 7:1 and 4.5:1. Buttons, icons and form borders need 3:1 against what sits next to them.
What is APCA, and should I use it?
APCA is the contrast method in the WCAG 3 draft. It scores how readable text looks, so dark text on light and light text on dark score differently. It is not a legal standard yet. Pass WCAG 2 for compliance and use APCA to pick the more readable option.
How does it build a whole palette from one color?
It keeps your color's hue and steps its lightness in OKLCH, a color space where equal steps look equal, from 100 (lightest) to 900 (darkest). Text, muted text, borders and backgrounds take a quiet version of your primary hue, so they match. Every text color is checked against the backgrounds it sits on.
What if my brand color fails as a button?
Mid-bright colors like orange, yellow and light green sit too close to white, so the tool puts dark text on them and your color stays. If neither white nor dark text reaches 4.5:1, it offers the nearest darker shade that passes and says so. Your own color stays in the palette, and you can keep it for buttons if you choose.
Does the tool save my palette?
Your palette stays in this browser, so it is here when you come back. Nothing is sent to us.
Which color goes in which GeneratePress slot?
GeneratePress names its seven Global Colors by slug. contrast is body text and headings, contrast-2 is muted text like post meta, and contrast-3 is the form focus border. base is the light gray of submenus and form borders, base-2 is the page background, base-3 is the content background, and accent is links and the menu hover. Pick GeneratePress above and the tool fills each one for you.
Where does theme.json go?
In the root folder of a block theme or child theme. Classic themes like GeneratePress and Astra use their own color settings, so pick that tab instead.
More free tools
Type scale and clamp calculator
Pick a ratio and get fluid clamp() font sizes, ready for theme.json.
Gradient and shadow generator
Build CSS gradients and layered box shadows, then copy them as CSS, theme.json presets or GenerateBlocks styles.
SERP pixel checker
See your title and description in real pixels on desktop and mobile, before Google cuts them off.