Mastering Multi-Level Color Variables In Divi 5

Posted on November 29, 2026 by Leave a Comment

Mastering Multi-Level Color Variables In Divi 5
Blog / Divi Resources / Mastering Multi-Level Color Variables In Divi 5

Changing a brand color should not mean opening every button, card, and text module. In Divi 5, color variables can reference other color variables, keeping related colors connected as a design changes.

That connection is what makes multi-level color variables useful. A primary color can determine a secondary color, which can then supply lighter backgrounds and transparent variations. Apply those variables through Presets, and the same relationships carry into reusable module designs.

This guide explains how to build those connections with Divi 5’s native color tools, then apply them to an agency services section with cards and buttons.

What Are Multi-Level Color Variables In Divi 5?

A color variable stores a reusable value in Divi’s Design Variables. Give it a color and a name. Other colors can reference it, apply their own adjustments, and then serve as the starting point for further variations. Those linked steps form a multi-level color system.

For example, Primary Color can supply Secondary Color through a hue adjustment. A lighter variation of the Secondary Color can then serve as a card background. The card’s color depends on Secondary Color, and Secondary Color depends on Primary Color.

Primary Color connects to Secondary Color and a lighter card background

Changing the primary color affects both connected colors. Changing only the card background’s lightness adjusts that variation while preserving its connection. This gives you control over the whole palette and its individual variations.

Presets apply these variables to reusable styles. They are useful alongside the color system, but they are not another level of color variable.

How Relative Colors Keep Your Palette Connected

Divi 5’s relative colors use HSL adjustments to change a referenced color. Hue changes its color family, Saturation changes its intensity, and Lightness makes it lighter or darker. Opacity controls how much of the background shows through.

Choose an existing color variable before adjusting its lightness to keep the result linked to it. A separate hex value is unrelated to that variable, so it will remain the same even when the original color changes.

For a services section, a pale tint can soften the card backgrounds. A darker variation can supply a button’s hover color. A transparent variation can give the cards subtle borders without introducing an unrelated color.

Generate A Connected Color Palette

Start with one brand color. The Color Palette Generator builds a set of related colors around it, including lighter and darker variations you can reuse across the site.

In the Visual Builder, open the Variable Manager from the left sidebar. Hover over the Colors group and choose Generate Color Palette Variables to open the Variable Generator. Set Variable Type to Color Palette before configuring the following settings.

For this services section, start with #0055FF as the Primary Color. Choose Analogous as the Palette Type. This gives the section related blue and violet colors while keeping the palette compact.

Use these settings for the initial palette:

  • Primary Color: #0055FF
  • Palette Type: Analogous
  • Secondary Color Hue Offset: 30
  • Secondary Saturation Offset: 0
  • Number Of Shades: 2
  • Number Of Tints: 2
  • Number Of Tones: 2
  • Shade, Tint, Tone, And Alpha Intensity: 50

The counts determine how many variations Divi creates. The intensity settings determine how far those variations move from their starting colors. Two palettes with the same counts can look different when their intensity settings differ.

Analogous palette settings with two shades tints and tones

Review the preview before adding the palette. Tints provide lighter variations, shades provide darker variations, and tones reduce saturation. Transparent variations support effects such as borders, shadows, and overlays. You do not need to use every generated color in the finished section.

Click Add Variables To My Site when you are ready. The Color Palette generator updates the site’s base colors and can overwrite generated variables with matching names. Review the confirmation, then click Continue to save the palette. Use a staging site when trying this on an existing design.

Review the confirmation before adding generated color variables

The Color Scale Generator serves a more focused purpose: creating variations of an existing color. Palette generation is useful for grouping related colors; scale generation is useful when the starting colors are already decided. Choose Color Scales from the Variable Type menu, then choose the Source Color you want to build on.

Build And Refine Your Color Relationships

Return to the Variable Manager and expand Colors. Inspect a generated variable to see which color it references and how its filters change that color.

In this example, Secondary Color references Primary Color with a hue offset of 30. The generated secondary tints reference Secondary Color, extending that connection into the card backgrounds.

Secondary Color references Primary Color in the Variable Manager

Create a separate global color for the card surface so its lightness can change without changing Secondary Color itself:

  1. In Variable Manager > Colors, click Add Global Color.
  2. Name the variable Secondary Card Tint and click its color swatch.
  3. Under Global Colors, select Secondary Color as the source. Use the list view if you need to see the color names.
  4. Reopen the new variable’s swatch and expand Color Filters. Set Lightness to +42, leaving Hue and Saturation at 0 and Opacity at 100%.
  5. Close the picker, click Save Variables, and confirm with Apply Changes. The new color is ready to select in element settings.

Here, +42 adds 42 percentage points to the source’s HSL lightness. A source at 50% lightness produces a 92% lightness tint. The result still depends on Secondary Color, so it follows changes to that color and to Primary Color further up the chain.

The text colors can follow the brand, too. Set Heading Text Color to reference Primary Color with Lightness -35, then base Body Text Color on that heading color with Saturation -40 and Lightness +8. This keeps the body text linked while giving it a softer appearance.

Save the variables and apply the confirmation when Divi asks. These are site-wide values, so check other places that use them before making changes on a client site.

Save Variables applies the connected color changes

Use The Color Variables With Divi 5 Presets

Build three service cards beneath a short introduction. Our example uses Brand Strategy, Website Design, and Ongoing Growth, with a heading, a description, and a button on each card.

Use primary-tint-2 for the section background. Give the cards Secondary Card Tint, with Heading Text Color on the headings and Body Text Color on the descriptions. Finish with a transparent border using the generated secondary-alpha-glow variable to tie the cards into the same palette.

Agency services cards use the connected color variables

An Option Group Preset lets you reuse a specific group of settings. Our buttons share a Background Preset named Northline Button Background. It supplies Primary Color for the normal background and primary-shade-1 for the hover and focus backgrounds.

The Preset selector next to the Background group lets you apply these shared settings. In our example, each service button uses the same Background Preset.

An Element Preset stores a reusable module design. Our example uses Northline Service Button for the shared typography, border, and rounded corners. Apply it to the service buttons while keeping each button’s text and link specific to its service.

Add or create an Element Preset from the button settings

Give the focused button a visible border too. Our example uses a white, 2px border for its focus state. Check that this indicator remains visible against the surrounding colors when navigating with the keyboard.

The Element Preset supplies the shared button appearance, and the Background Option Group Preset supplies its background settings. Assign both to each button to reuse the design and its color relationships.

If one button behaves differently when you update the palette, inspect its individual settings. A separately entered background color can override the shared value you expected it to use.

Update The Design By Changing One Color

Change the Primary Color in the Variable Manager. Save and apply the variables, then open the frontend to see how the new color affects the whole section.

Trace the result from the Primary Color through the Secondary Color to the Secondary Card Tint, ensuring that the hue and lightness adjustments remain in place at each step. Then check the buttons. Their Background Preset should supply the updated Primary Color.

Check the hover state and the normal button background, then use the Tab key to check keyboard focus. Review headings, descriptions, borders, and the section background together. A connected palette preserves the relationships you set; you still need to judge the resulting combinations.

Open the state picker to inspect hover and focus styles

Use a contrast checker for text-background pairings after a brand change. Very light or very dark starting colors can make some variations less useful, even when the connections are working as intended.

Keep Your Color Variables Easy To Manage

Keep the palette small. Names such as primary-tint-2 show which color a variation comes from. The Secondary Card Tint also shows where we use that lighter color.

Adjust a linked color through its filters to preserve the reference. Reuse Presets for repeated styles. If an element stops following the shared design, check its individual settings for a color override.

You can take this further with a dark color palette, using relative colors to create lighter text and darker backgrounds from a shared starting palette.

Start with one section and trace its colors back to their references. Once those connections are clear, you can reuse the variables and Presets across the rest of the design.

Put Connected Color Variables To Work

Start with one brand color. Build a few linked variations for your headings, cards, and buttons, then change that starting color to see how the section responds.

Download Divi 5 and give it a try. With Design Variables keeping the colors connected and Presets repeating your styles, you can experiment with the palette across a whole section.

Divi Black-friday Sale

It's The Divi Black Friday Sale! Save Big For A Limited Time 👇

Save big on Divi and Divi products for a limited time.

Access The Sale
Divi Black-friday
Premade Layouts

Check Out These Related Posts

5 Cool Popups Built With Divi 5 (Free Download)

5 Cool Popups Built With Divi 5 (Free Download)

Posted on November 28, 2026 in Divi Resources

A visitor clicks a button to see a discount, ask about a project, or grab a launch checklist. In Divi 5, you can build each of those popups with the same modules you use on a page. Canvases give the popup its own workspace, and Interactions connect it to the button that opens it. This free download...

View Full Post

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

👋 It's The Divi
Black Friday Sale!
Get The Deal
Before It's Gone!
Join To Download Today