Color Mixer

Color Mixer gives Twig the colour operations designers reach for every day. Convert, lighten, darken, mix, tint, shade, fade, and assess colour values without maintaining a separate utility layer.

Colour tools for Twig

Take a colour stored in Craft and derive the variants your template needs at render time. A single source value can produce hover states, tints, shades, translucent overlays, or a complementary accent.

Lighten and darken

Derive brighter or deeper variants by a controlled amount.

Tint and shade

Blend towards white or black for a related colour scale.

Mix colours

Combine two values to create a deliberate intermediate colour.

Fade values

Adjust opacity and return a value suitable for translucent CSS.

Saturation controls

Saturate, desaturate or convert a value to greyscale by a chosen amount.

Complementary colours

Derive the colour opposite an existing value without maintaining a second field.

Common colour formats

Convert between Hex, HSL, RGB, RGBA, OKLCH, CMYK and related representations before passing the result to CSS or another template operation. Helpers can also determine whether a colour is broadly light or dark for contrast decisions.

Get started with Color Mixer

Available for Craft 4 and 5. Get it from the plugin store.