Colors in Library of Congress digital images.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Library of Congress Colors

What colors are in images? View color swatches for images in Library of Congress digital collections.

Each block of six swatches represents an image in the selected collection. Swatch colors are determined using k-means clustering. TThe colors that appear are not necessarily the most frequent colors, but the center of a cluster of color values. Since the whole image is analyzed, color targets, borders, and frames will affect the result.

This project uses thumbnail images from Library of Congress digitized collections, accessed via the JSON API.

See the code on GitHub or:

  • Jupyter notebook with the Python code used to access the API and analyze the colors.
  • JSON files with image URLs and colors for each collection.