How can I Find the Average Color of a Photograph?

if ($p->mode == 'input'): ?>

Many popular image-editing tools allow you to determine the average color of a small section of an image, but we couldn't find any that could calculate the average color of an entire photograph. Enter, the Average Color Tool.

Possible Uses

  • Convince your landlord that the carpet by the entry isn't as dirty as she claims it is.
  • Prove that fruit sellers put the best-looking fruit in the most prominent location.
  • Use your own travel photos to decorate a room; a well-chosen combination could dramatically emphasize the beauty of your photos.
  • Monitor how the greens in your garden change from season to season.

Choose your Image

Simply use the boxes below to upload a photo (.jpg or .jpeg files only) from your computer or directly from URL, and the average color tool will take care of the rest. (Maximum filesize: 2 Megabytes)

if ($p->error): ?>

if (($p->error['code'] == 1 ) || ($p->error['code'] == 2)):?> Error: Your file was larger than 2MB elseif (in_array($p->error['code'], array(3, 4))) :?> Error: Upload failed, Please try again elseif (in_array($p->error['code'], array(6, 7, 8, 100))) :?> Error: Internal error. Please try again later elseif (in_array($p->error['code'], array(11, -2, -3))) :?> Error: Cannot connect to Image URL elseif (in_array($p->error['code'], array(-1))) :?> Error: Flickr: =$p->error['message']?> elseif (in_array($p->error['code'], array(12))) :?> Error: You have entered is not a supported image type. Please try again else: ?> //=$p->error['message']?> endif; ?>

endif; ?>
Image URL

Upload an Image


Here are some samples that we have processed through the average color tool. Thumbnails are displayed on the left, and the corresponding average-color-swatch is on the right. You can click on the thumbnails for larger versions of the photographs.

else: ?>
HTML Color: #=$p->color['html']?>

red =$p->color['r']?>
green =$p->color['g']?>
blue =$p->color['b']?>

cyan =$p->color['c']?>%
magenta =$p->color['m']?>%
yellow =$p->color['y']?>%
Black =$p->color['k']?>%

Submit Another Image