Craft Color Mixer

Use Twig to modify and manipulate color values and generate valid CSS that can be used in your templates.

This plugin allows you to use simple Twig filters to do the following things:

  • Transform color values from HEX to RGB
  • Transform color values fromTraHEX to HSL
  • Lighten and darken colors by a set amount.
  • Determine if a color is considered dark or light.
  • Get a complementary color
  • Generate gradients.


Ported from the excellent Color Mixer for Craft 2:


Package Name

To install this plugin, search for its package name on the Plugin Store and click “Install”.


Report an issue