Gets your attachment's dominant colors.
As of April 2026, WP Image Color Palette is a WordPress image plugin with 10 active installations and a 0/5 rating0. It has been downloaded 1.5K+ times in total. Requires WordPress 4.8+ and PHP false+. Available on WordPress.org since 2017. Last updated 8 years ago — may have compatibility concerns. Top alternative: Firelight Lightbox.
You can find your image swatches in the post meta. There are two global php functions to get these values:
wpip_get_post_thumbnail_color( int|WP_Post $post )
Gets the main rgb color from a post.
wpip_get_post_thumbnail_colors( int|WP_Post $post )
Gets the main rgb colors from a post.
Advanced users may also like the following functions to extract the colors from any image they want in WordPress.
wpip_get_image_color( string $file, int $precision = 20, int $palette_length = 5 )
Gets the main color from an image.
wpip_get_image_colors( string $file, int $precision = 20, int $palette_length = 5 )
Gets the im…
| WordPress | 4.8+ requiredTested up to 4.8.28 |
| PHP | false+ required |
Release Date: August 14th, 2017
…and 5 more changes
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.