color-palette icon indicating copy to clipboard operation
color-palette copied to clipboard

ruby script to get the color palette of a site

color-palette

ruby script to get the color palette of a site

output: table of color and frequency

=== Running script:

  • ruby color.rb 'url'

=== Notes:

  • The color palette considers hex, rgb, rgba and english word colors (ex. red, green, blue).
  • All colors are translated to hex just for consistency.
  • This script ignores opacity.
  • generates html file so you can visually see color palette