How to build a color palette from one color
A good color palette can start from one color. You do not need a large set of swatches or a special tool. Choose a base color, make a few lighter and darker versions, then add one accent. This method keeps the page calm and gives you a set of colors that work together.
Choose the base color
Pick the color that feels most like the brand or the mood of the site. It can be a deep green, a soft blue, or a warm clay tone. Write the hex code down, for example #3b6e8f. Keep that code in your notes so you can return to it later.
Check the color on a plain white page and on a dark grey page. Some colors look bright on white and dull on grey. Choose one that works on both, or plan to use it only on light backgrounds.
Make tints and shades
A tint is the base color mixed with white. A shade is the base color mixed with black. Make a small run of each. Four or five steps is usually enough. Use the lightest step for backgrounds, the middle steps for borders and soft fills, and the darkest step for text on light pages.
Follow these steps:
- Set the base color as the middle value.
- Make two lighter tints and two darker shades.
- Name each step by its role, such as soft, base, or deep.
- Save the set in one file.
Named roles are more useful than numbers. You will remember that the deep color is for headings, but you may forget what step 700 is for.
Add one accent
An accent color draws attention to buttons, links, and small highlights. It should differ from the base in hue, not only in lightness. A warm orange can work well with a cool blue base. Use the accent sparingly. If it appears in every section, it stops being an accent.
Check the contrast
Text must be easy to read. A common guideline for body text is a contrast ratio of at least 4.5 to 1 against the background. Many free online tools can check this. Paste your text color and background color, then read the result. If the ratio is too low, darken the text or lighten the background.
Do not rely on your eyes alone. A color that looks fine on a bright monitor may look weak on a phone in sunlight. The check takes only a minute, and it protects every reader.
Pick the colors that let the words win.
Color should support the words, not compete with them.
Use the palette
Once the set is ready, apply it in a simple way. Use the lightest color for the page background, the base for the main accents, and the deepest shade for text. Keep photos as they are. Too many colors on one page make the layout feel busy.
Store the palette as variables in your stylesheet, such as --ink, --paper, --base, and --accent, so you can change one value later and see the change everywhere. Name the variables after their role, not their hue. A variable called --base still makes sense if you later pick a different blue.