Sometimes you need to pull out a color from an image. This could be for a placeholder, for a background, or for any other use. Often the "most common" color from an image is going to be shades of grey or brown – not the most exciting color to expand on....
class ColorExtractor
attr_accessor :source_url
DEFAULT_COLOR = '#4338CA'.freeze # indigo-700