Log in

Mostly Zeros

Previous Entry Share Next Entry
10:28 am: Question for graphic artist / wedschilde / whoever
Is there an algorithm or method for picking the correct contrasting color given a background RGB (or any color space really) value? Obviously black <-> white and vice versa, but what's the best contrast with #FF0000 for example?

My engineering brain thinks there must be an algorithm where any given color has a best contrasting on some opposite side of a color sphere.

No real immediate need, just curious & slightly annoyed at my current time-keeping app "Klok" which always uses white as the foreground text but needs a light color for background.

Powered by LiveJournal.com