mean colour

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I posted a command-line Perl script to this group a while back, but now
I've written a web wrapper for it: /

I often find it necessary to calculate the average between two colours.

For example, if there's a colour that I've been featuring in the header of
a site, I may want to choose a slightly darker version of that colour to
use for the text foreground, so I find the average of the colour with

Or perhaps I need a washed out blue. Try averaging blue, white, silver and
white (yes -- white twice).

The calculator is also able to find the closest "web safe" colours to the
result (though in practice these days, all colours are web safe), and the
closest named colours from the X11 palette (which incidentally forms the
CSS 3 named colour palette -- and is the only part of CSS 3 reliably
supported by most mainstream browsers).

Anyway, hope some people find it handy.

Toby A Inkster BSc (Hons) ARCS
Contact Me  ~

Re: mean colour

Suddenly, without warning, Toby Inkster exclaimed (28-Sep-06 5:08 PM):
Quoted text here. Click to load it

I do!  Thanks, looks like a useful little too.  Bookmarked!


Site Timeline