Managing dozens of colour permutations throughout a design gadget creates needless chaos. You may spend hours adjusting tints and sunglasses as an alternative of establishing the true web site.
On the other hand, there’s a technique to construct colours which are versatile, constant, and simple to take care of: with Hue, Saturation, Lightness (HSL)-based colours. Divi 5 offers you the gear to try this with out overcomplicating your workflow.
On this submit, we’ll stroll via putting in semantic colour roles so you’ll design intuitive layouts with out the grunt paintings. Let’s get to it!
What Are Semantic Colour Roles
Semantic colour roles arrange your palette by way of function. As a substitute of naming colours “blue” or “pink,” you identify them by way of what they do: number one, secondary, caution, error, luck, and information.
Subscribe To Our Youtube Channel
This naming gadget solves a not unusual downside. You’re construction a website online and want an error colour. You want to create a brand new pink or hunt for the pink you used sooner than. With semantic naming, you simply grasp “error” and transfer on.
Each and every error throughout your website online makes use of the similar colour as a result of all of them reference the similar variable. Shape validation, alert messages, and different not unusual makes use of. Easiest consistency with out eager about it.
The naming creates a shared language as smartly. Hand your mission to any other dressmaker or shopper, they usually perceive right away. Number one handles major movements. Caution handles indicators. Good fortune handles confirmations. The room for confusion is totally long past.
HSL And Relative Colours: A Temporary Assessment
HSL stands for Hue, Saturation, and Lightness. This colour style offers you a extra intuitive technique to paintings with colours in comparison to RGB values.
Hue is the true colour as some extent at the colour wheel, starting from 0° to 360°. Pink sits at 0 levels, inexperienced at 120, and blue at 240.

Saturation controls how natural or brilliant the colour seems, measured from 0% (totally grey) to 100% (totally saturated). Lightness adjusts brightness from 0% (black) to 50% (natural colour) after which to 100% (white).
Relative colours construct permutations without delay from a base colour. As a substitute of defining every coloration one at a time, you select a root colour and create lighter, darker, or muted variations by way of adjusting the HSL values.

Your number one blue turns into the root. Cut back its lightness by way of 20% to get a darker variant. Drop the saturation to 40% for a muted model. Each and every variation references the unique.
This creates connected colour households. Alternate your base blue to inexperienced, and each variant shifts with it. Your button hover states keep persistently darker than the primary buttons. Your background tints stay accurately gentle. The relationships hang as a result of every variation pulls from the similar root. You put up the gadget as soon as, and your whole palette strikes in combination.
The use of HSL Colours In Divi 5
Divi 5 builds HSL controls without delay into the colour picker. Each and every colour box around the builder offers you get admission to to hue, saturation, lightness, and opacity sliders with out leaving the interface.
Click on any colour swatch on your module settings. The picker opens. You’ll see the visible selector on the most sensible and the colour enter box under it, the place you’ll paste hex codes or enter RGB/HSL values.
Search for the Colour Filters dropdown beneath that enter box. Click on it. The HSL sliders extend under: hue, saturation, and lightness. Hue shifts the colour across the wheel.

Saturation controls how brilliant or muted the colours seem. Lightness adjusts the perceived darkness or brightness. Drag any slider and watch the preview replace straight away above.
A darker model of your emblem blue for button hover states manner pulling the lightness slider down 20%. A softer background that received’t compete with textual content manner losing saturation by way of 30%. The adjustments occur reside, so you notice precisely what you’re getting sooner than you devote.
Colour swatches all through Divi now show small markers. A simple swatch manner static colour. Markers seem when it’s connected to a variable or changed with HSL. You’ll inform at a look which colours tie into your gadget and which of them don’t.
You’ll nonetheless kind values without delay if that’s sooner for you. However the sliders take away the guesswork when you want permutations of the similar colour.
Growing Relative Colours With HSL Controls
Now that you know the way HSL sliders paintings within the colour picker, the next move is to combine them along with your design gadget. This turns person colour changes right into a structured palette that updates routinely whilst you trade the root. We can use Divi 5’s Design Variables right here.
Get started within the Variable Supervisor. Open it from the left sidebar, then click on the Colours tab. Upload a brand new colour variable.

The colour picker seems. You’ll see all of your stored world colours indexed. Make a choice one to make use of as your base. This pulls in that colour worth as your start line.
Click on the swatch once more to reopen the picker. Search for Colour Filters and extend them. The HSL sliders seem under: hue, saturation, and lightness.
Drag any slider to create your variation. Button hover states paintings smartly with one thing darker. Pull lightness down 20%. Backgrounds keep softer whilst you drop saturation by way of 30%. The preview updates straight away as you progress every slider.
Give this new colour a descriptive identify, corresponding to “Number one Darkish” or “Comfortable Background.” Reserve it. You’ve created a relative colour that references the unique base colour.

Alternate your base colour later, and this change routinely shifts with it. The relationship remains intact. Regulate the basis as soon as, and each hooked up colour updates throughout your whole website online.
You’ll even stack those. Construct a 3rd colour in response to your first relative colour.

Click on the colour box and make a selection the specified colour to make use of those variables throughout your Divi modules anywhere you want them.
Construction A Semantic Colour Palette In Divi 5
Now we’ll put concept into observe. You’ve noticed how relative colours and HSL paintings in Divi 5. This phase walks you via construction an entire semantic palette from scratch.
Atmosphere Up Your Number one Colour As The Basis
Open the Variable Supervisor from the left sidebar in Divi 5. Click on the Colours tab. You’ll see default entries for Number one, Secondary, Heading, and Frame textual content colours.
Click on into the Number one Colour box. Input your major emblem colour as a hex code.

This turns into your base. The whole thing else you construct can reference this worth. In a similar fashion, you’ll trade the Secondary and Textual content colour variables as smartly.

You utilize the secondary colour to your web site to make issues stand out and stay the design attention-grabbing.
Growing Your Caution Colour With HSL
Caution colours keep up a correspondence warning. They want yellow or orange tones that stand with the exception of your emblem colours. Input a hex code across the yellow to orange vary. One thing like #FFA500 works smartly for many designs.
Now, upload a brand new colour variable to your caution colour. Identify it “Caution” and reserve it.

The caution colour sits along your number one, no longer derived from it. You’ll regulate the HSL sliders to shift your base colours right into a right kind yellow or orange by way of converting the hue, however the vary varies significantly for each colour. So, for those who replace the colour at some point, the caution coloration derived may also trade to a couple different colour.
Semantic colours require distinct meanings. Caution manner warning. Your number one colour represents your emblem. Blending colour roles with emblem/base colours dilutes each and makes it very tricky to pass judgement on adjustments. So, it’s higher to stay them prominent.
You currently have a definite semantic colour that can be utilized to alert customers. Shape validations, alert banners, and warning messages can all reference this variable.
Construction Error And Good fortune Colour Roles
Upload two extra colour roles to spherical out your gadget. Error handles disasters, indicators, and damaging movements. Good fortune confirms completions and certain states.
For Error, use pink round #DC2626 or #EF4444. Follow this to failed shape validation messages, delete buttons, gadget indicators, failed cost notifications, and significant warnings. Any place customers want to see that one thing went improper or an motion can’t be undone.

For Good fortune, go for inexperienced sunglasses like #10B981 or #22C55E. This covers affirmation banners, finished job checkmarks, energetic standing signs, cost luck displays, and certain metrics. Any time you’re appearing that an motion labored or a state is wholesome.

Including An Data Colour To Entire The Device
Data rounds out your comments palette. This colour is used for impartial messages, useful pointers, and common notifications that don’t have compatibility into the caution, error, or luck classes.
Make a selection blue round #3B82F6 or #2563EB for Data. Blue reads as calm and informative with out triggering urgency or worry. Upload this variable in your Variable Supervisor the use of the similar procedure. Pick out your hex code, identify it “Data,” and save.

You’ll follow this to tooltips, gadget updates, characteristic bulletins, lend a hand textual content, onboarding messages, informational banners, and different an identical content material.
Your palette now has more than one distinct roles. Number one and Secondary power your emblem id. Caution, Error, Good fortune, and Data take care of each form of person comments. Each and every colour has a transparent function, and that function remains constant in every single place it seems that.
Growing Lighter And Darker Permutations For Each and every Position
Each and every semantic colour wishes permutations for various contexts. Your Number one colour works for major buttons, however you want lighter sunglasses for backgrounds and darker ones for hover states. Construction those permutations now will provide you with a complete toolkit that handles each design state of affairs.
Number one Colour Permutations
Get started along with your Number one colour within the Variable Supervisor. Upload new colour variables and make a selection Number one as the bottom for every. Open Colour Filters and create those permutations:
- Number one Background (+30% lightness): Segment backgrounds, card backgrounds, and big spaces the place complete colour would weigh down
- Number one Accessory (+50% saturation): Delicate accents, secondary backgrounds, and comfortable dividers
- Number one Hover (-20% lightness): Button hover states, energetic navigation pieces, and centered shape fields
- Number one Energetic (-25% lightness): Pressed button states, energetic alternatives, and emphasised borders
Secondary Colour Permutations
Construct Secondary permutations the similar approach, the use of your Secondary colour as the bottom:
- Secondary Background (+30% lightness): Exchange phase backgrounds, sidebar fills, and complementary card backgrounds
- Secondary Accessory (+50% saturation): Supporting part backgrounds, choice accents, and secondary dividers
- Secondary Hover (-20% lightness): Secondary button hover states, choice navigation hovers, and complementary energetic states
- Secondary Energetic (-25% lightness): Pressed secondary buttons, choice alternatives, and supporting emphasised parts

Good fortune Colour Permutations
Construct Good fortune permutations the use of the similar manner:
- Good fortune Background (+30% lightness): Affirmation message backgrounds, luck banner fills, and certain standing signs
- Good fortune Hover (-10% lightness, +35% saturation): Finished motion buttons, energetic luck states, and emphasised checkmarks
Caution Colour Permutations
Create Caution sunglasses for warning messages:
- Caution Background (+30% lightness): Warning banner backgrounds, tooltip fills, and spot packing containers
- Caution Hover (-10% lightness, +35% saturation): Caution button hover states, alert borders, and emphasised warning textual content
Error Colour Permutations
Repeat the method along with your Error colour as the bottom:
- Error Background (+30% lightness): Alert field backgrounds, shape error box backgrounds, and “threat” banners
- Error Hover (-10% lightness, +35% saturation): Push aside hover states, vital caution textual content, and damaging motion confirmations
Data Colour Permutations
End with Data colour permutations:
- Data Background (+30% lightness): Informational banner backgrounds, lend a hand textual content packing containers, and impartial notification fills
- Data Hover (-10% lightness, +35% saturation): Data button hover states, hyperlink colours, and emphasised informational textual content
Those are some examples and the commonest makes use of; you’ll create as many permutations as you wish to have.

You’ll even generate extra sunglasses from current sunglasses. When you will have to upload extra permutations, have in mind to label every obviously: “Number one Mild,” “Error Darkish,” “Good fortune Further Mild.”
With this basis in position, colour choices grow to be sooner and extra constant. You’re now not trying to find hex codes or eyeballing sunglasses. You’re pulling from a gadget that already works. The naming tells you exactly what it’s and stops confusion or mix-ups when your shopper or crew is operating at the web site.
Take a look at Colour Control In Divi 5 Lately!
Your semantic colour palette creates intuitiveness and consistency that holds up throughout each web page, module, and long run replace. The gadget you constructed manner sooner choices and cleaner handoffs. When your number one inexperienced shifts to olive within the next rebrand, each variation strikes with it since the relationships stay intact.
When you’re operating with current websites that experience scattered static colours in every single place, In finding and Change can briefly change the ones outdated hex codes to your new semantic variables.
Your subsequent mission merits a colour gadget that in reality works. Obtain Divi 5 and set yours up within the subsequent 20 mins.
The submit How To Construct Semantic Colour Roles With Relative HSL In Divi 5 (Number one/Data/Caution) gave the impression first on Chic Subject matters Weblog.
WordPress Web Design