This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Dominant Color


A WordPress plugin to automatically save the dominant color and a color palette for an attachment image into post_meta.


  • Shows the plugin in use on
  • Shows the plugin in use on
  • Shows the plugin in use on


The dominant color and color palette is automatically saved on upload and edit to post meta.

You need to then use get_post_meta to retrieve the β€œdominant_color_hex” or β€œdominant_color_rgb” meta key. hex returns a string, including the #, rgb returns an array with key 0 as red, 1 as green, and 2 as blue.

Alternatively, you can use the meta keys β€œcolor_palette_rgb” and β€œcolor_palette_hex” to get an array of 8 colors that feature prominently in the image.


πŸ‚ πŸ”Ÿ 29, 2019
Useful plugin, please add function to bulk edit all images on gallery πŸ₯°
❄️1️⃣2️⃣ 12, 2018
I like this and how it does what it says. I like also that it doesn't enqueue any scripts or CSS into the page. Great for custom theme development. Also seems to work well in Wordpress 5.0 (newest at the time of this review).
πŸ‚ 9️⃣ 3, 2016
Pulls out both the dominant color and a nice color palette. Far more efficient to do this calculation once on upload rather than via PHP or JavaScript when rendering the page. Perfect!
πŸ‚ 9️⃣ 3, 2016
I had to search the post_meta table to find out how the 'dominant_override' meta_key - it would have been useful to find that in the release notes. A bulk calculate feature would be excellent - along with a way of colour picking the override from the posts screen in the WP Dashboard. Otherwise, perfect for what I need πŸ™‚
Read all 4 reviews

Contributors & Developers

“Dominant Color” is open source software. The following people have contributed to this plugin.


“Dominant Color” has been translated into 3 locales. Thank you to the translators for their contributions.

Translate “Dominant Color” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



Modernise javascript for deprecated jQuery handlers
Update to latest version of PHP Color Thief
Bump version requirements to match color thief and a modern-ish WordPress (5.4+)


Support translated languages (Submit your translation at!)


Fix a bug where loading our JS in the footer would cause a javascript error.


Add a colour picker to the attachment edit screen to override the dominant color with a custom pick.
The WordPress media gallery will now let you pick a dominant color override which will be returned in place of dominant_color_hex/rgb when set.
It’ll also let you generate a palette for legacy images uploaded before you installed the plugin.


Initial Build