Choosing suitable background / foreground colour using PHP
Posted
by Lizard
on Stack Overflow
See other posts from Stack Overflow
or by Lizard
Published on 2010-04-12T23:57:33Z
Indexed on
2010/04/13
0:03 UTC
Read the original article
Hit count: 444
I am looking to find a why to calculate a suitable background colour and a colour for the text that would go over the top, obviously I need to take into account readability and accessibility.
I would need to pick the two colours from the array, the colours are stored in their hex representations.
#CC9966
#996633
#FFCC99
#CCCC99
#000000
#333333
#666633
#663333
#CC9933
#FFCCCC
I can use a PHP library like GD / imageMagick?
Any suggestions (Please note I am using PHP)
© Stack Overflow or respective owner