Programmatically choose high-contrast colors

前端 未结 10 722
野的像风
野的像风 2020-12-14 07:29

This should be a simple question, but I haven\'t been able to find a way to make it work.

Essentially, I have a silly localhost page that I use in my webdevelopment.

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-14 07:45

    Check out this PHP solution: Calculating Color Contrast with PHP by Andreas Gohr. It can be ported to any language of course.

    He also has a very nice demonstration of his contrast analyzer where you can find some minimal contrast levels to work with.

提交回复
热议问题