Print

Extract colors from a web image using Python

In this video I am going to show you how you can extract the colors from an element in your data visualization, so you can use it elsewhere in your visual.

Chapters:

00:00 Intro
00:37 Import the colors and the images
01:40 Convert the colors to RGB pixels and the the frequency
02:20 Store the RGB colors in a dataframe and pick the ones I want
05:15 Convert the RGB to HEX
05:50 Plot the colors with Matplotlib
06:00 Add a complementary color to list of colors

Watch the tutorial on YouTube

Extract colors from an element in your visualization for re-use | Extract colors with Python

Get the code:

Was this helpful?

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *

Table of Contents