huacnlee / rucaptcha

Captcha Gem for Rails, which generates captcha image by Rust.
https://huacnlee.github.io/rucaptcha
MIT License
693 stars 133 forks source link

Exclude colors that do not pass WCAG 2.0 AA level #70

Closed tagliala closed 5 years ago

tagliala commented 5 years ago

Hi, I hope you can like this PR

Green and Yellow are too light and impact on user’s ability to read the Captcha. Deep Purple and Pink are better choices

Ref: https://www.w3.org/TR/WCAG/#contrast-minimum

Comparisons: Green: https://contrast-ratio.com/#%2300C853-on-white Pink: https://contrast-ratio.com/#%23C51162-on-white

Yellow: https://contrast-ratio.com/#%23FFD600-on-white Deep Purple: https://contrast-ratio.com/#%236200EA-on-white

huacnlee commented 5 years ago

Thanks 👍

huacnlee commented 5 years ago

Version 2.3.2 has released

tagliala commented 5 years ago

You're welcome!