Auto-generate WCAG 2.1 AA/AAA compliant color schemes with real-time contrast checking and color blindness simulation
Zero Dependencies · Works OfflineThe WCAG Accessible Color Palette Generator is a free online tool that helps designers and developers automatically generate color schemes compliant with WCAG 2.1 accessibility standards. The tool provides real-time contrast checking, color blindness simulation preview, and one-click CSS variable export, ensuring your designs are friendly and accessible to all users.
The Web Content Accessibility Guidelines (WCAG) 2.1 require sufficient brightness contrast between text and background to ensure content is readable for users with visual impairments. AA level requires normal text contrast of at least 4.5:1 and large text at least 3:1. AAA level is stricter, requiring 7:1 for normal text and 4.5:1 for large text.
When designing colorblind-friendly interfaces, do not rely solely on color to convey information. Recommendations: 1) Use color + shape/texture/text label combinations; 2) Avoid red-green color schemes; 3) Ensure different colors have brightness differences under colorblind vision; 4) Use this tool's color blindness simulation to verify designs.
| ';keys.forEach(i=>{html+=` | ${palette[i].name} | `});html+='
|---|---|
| ${palette[i].name} | `;keys.forEach(j=>{const cr=contrastRatio(palette[i].rgb,palette[j].rgb);const cls=cr>=7?'contrast-pass':cr>=4.5?'contrast-warn':'contrast-fail';html+=`${cr.toFixed(1)}:1 | `});html+='
Body text preview - Contrast ${cr.toFixed(2)}:1 ${cr>=4.5?'✅':'❌'}