Given a random background color, how can you determine a different color that would be pleasant to read on top of that background?
October 28, 2010 8:02 PM Subscribe
I want to take a random color, and from it, generate a few other colors that are guaranteed to be legible if the first color is used as a background.
posted by jsturgill to Media & Arts (9 answers total) 3 users marked this as a favorite
Rules like, increase brightness by X percent, looping back to 0 if it passes the maximum allowed value, and you will wind up with a different shade of the same color that will always be legible.
Or perhaps different ranges of hue, saturation, and brightness require slightly different algorithms.
Practical experiments will have to wait for the weekend. In the meantime, if someone's already done the legwork, I wouldn't mind saving some time. Is there some aspect of color theory, or an already existing guide, that covers this ground?
It doesn't have to be super-pretty, just legible. Weird primary color intensity stuff wouldn't really be okay, though.