Guide · Design workflow
How to Choose a Color Palette for a Brand or Product
A color palette is a small set of colors assigned to specific roles, such as background, text, primary action, accent and error, so that every screen and every page uses the same colors for the same jobs. The hard part is not picking attractive swatches. It is building a set that passes contrast requirements, keeps a warm and cool balance, survives dark mode and still looks intentional when real content lands on it. This guide sets out a practical sequence for choosing, testing and documenting a palette.
Key takeaways
- Define color roles before choosing values, because a palette fails when two colors compete for the same job.
- Treat WCAG contrast as the floor: 4.5:1 for normal text, 3:1 for large text and interface elements.
- Use the 60-30-10 proportion as a hierarchy check, not as a pixel budget for every component.
- Test the palette on real screens in grayscale, with a color blindness simulation and at phone width.
- Build dark mode as a second palette with its own surfaces and accent values, not as an inversion.
- Document roles, approved pairs and contrast ratios in one place that design and code both read.
What is a color palette, and which roles should it assign?
A color palette is a limited set of colors mapped to roles: background, surface, text, primary action, secondary action, accent, border, success, warning and error. The colors matter less than the mapping, because a palette fails when two people use the same blue for different jobs.
Start by listing the roles the project actually needs. A brochure may need only paper, ink, one accent and a photo treatment, while a web product needs hover states, focus rings, charts and disabled controls.
A palette is not a mood board. A mood board collects references, while a palette commits to values and rules that other people can apply without asking.
- Core brand colors: one or two colors that carry recognition.
- Neutrals: background, surface, text and border colors, usually a family rather than a single gray.
- Accent: the color reserved for the main action or the smallest emphasis.
- Semantic colors: success, warning, error and information, each with a text-safe variant.
- Data colors: a separate set for charts that stays distinguishable in grayscale and for color-blind readers.
How do you start from the brand instead of a favorite color?
Begin with three adjectives from the brand brief and the contexts where the palette will appear. A clinic, a skate brand and a payroll product should not start from the same hue.
Audit what already exists: logo files, packaging, a website, a storefront, a deck. The goal is to find the colors the brand cannot abandon and the ones that were added by accident.
Then choose a direction rather than a final swatch. Warm or cool, saturated or muted, high contrast or soft. Write the direction in one sentence and judge every candidate against it.
If the brand has no existing color, start with one anchor that fits the adjectives and build the rest around it. One anchor is easier to defend than five unrelated favorites.
Trend research is useful at the start and dangerous at the end. A palette built only from this season's references dates quickly, while a palette built from the brand adjectives can absorb a fashionable accent without losing its identity.
How do you make a palette accessible?
Accessibility sets the floor, not the style. WCAG 2.2 requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text, which it defines as at least 18 point or 14 point bold, roughly 24 pixels and 18.5 pixels.
Interface components and meaningful graphics need at least 3:1 against adjacent colors under success criterion 1.4.11. A border, an icon or a focus ring that disappears into the background fails even when the body text passes.
Build approved text and background pairs instead of hoping every combination works. Record the ratio next to each pair, and keep a darker and a lighter variant of each accent for use on light and dark surfaces.
Color also cannot be the only signal. WCAG 1.4.1 requires another visual means, such as text, an icon or a shape, so an error state needs more than a red border.
- Body text on background: 4.5:1 minimum.
- Large headings and large text: 3:1 minimum.
- Buttons, inputs, icons and focus indicators: 3:1 against adjacent colors.
- Do not use color alone for errors, status or required fields.
- Check the result in grayscale and with a color blindness simulation.
How do warm and cool colors balance in a palette?
Temperature is the balance between colors that read as warm, such as red, orange and yellow, and colors that read as cool, such as blue, green and violet. Most palettes need both, but rarely in equal amounts.
A warm accent on a cool field feels active and draws the eye, while a cool accent on a warm field feels calmer and more clinical. The ratio decides the mood more than the individual hue.
Use temperature to separate roles. If the brand color is warm, make interface neutrals slightly cool so buttons and links stand out without more saturation. If the brand color is cool, a warm accent can mark destructive or time-sensitive actions.
Watch for temperature drift in neutrals. A gray mixed from the brand hue looks intentional, while a gray with a random green cast looks like a printing error.
Culture changes what a color means, so do not assign meaning from a chart in a book. The same red can signal luck, danger or celebration depending on the audience, and the brief should say which associations matter for this brand.
What is the 60-30-10 rule, and does it apply to interfaces?
The 60-30-10 rule is a proportion guideline: about 60 percent of a composition in a dominant color, 30 percent in a secondary color and 10 percent in an accent. Nielsen Norman Group advises that the dominant and secondary colors are typically relatively neutral, with the accent reserved for what must stand out, such as the primary call to action.
It is a starting point, not a law. A dashboard may use far more neutral surface than 60 percent, and a campaign page may push the accent higher. The useful part is the hierarchy: one color should clearly dominate.
Apply the idea by role rather than by pixel count. In a product, backgrounds and surfaces usually carry the dominant share, text and secondary surfaces carry the middle share, and the action color stays small.
Test the proportion at page level. A screen with five equally saturated cards has no dominant color even if each card follows the ratio internally.
- 60 percent: background, surface and large calm areas.
- 30 percent: text, secondary surfaces and supporting brand color.
- 10 percent: primary actions, links and the accent that must be noticed.
How do you test a palette in context?
Test with real content on the surfaces where the palette will ship. A palette that looks balanced in a row of swatches can fall apart in a table, a form or a photo overlay.
Check the smallest text, the busiest screen and the longest page. Then check the palette at 390 pixels wide, in bright light and on a second display, because a color that passes on a calibrated monitor can fail on a laptop in a cafe.
If a tester hesitates, the palette is ambiguous. Fix the role or the value, not the tester.
- Put the palette into a real screen with real copy, not placeholder text.
- Check body text, captions, buttons, links, borders, focus states and disabled states.
- View the screen in grayscale and confirm the hierarchy survives without hue.
- Run the main pairs through a contrast checker and record the ratios.
- Simulate the common forms of color blindness.
- Compare the screen at 390 pixels wide and at desktop width.
- Test on a second display and, if the brand prints, on a proof.
- Ask someone unfamiliar with the design to find the primary action and the error state.
How do you extend a palette into tints, shades and tokens?
Most palettes need more values than the five or six colors in the brand book. Interfaces need hover, pressed, disabled and focus variants, and dark mode needs a second set of surfaces.
Build scales around each core hue instead of inventing new colors. A scale from 50 to 900 gives designers room to work while keeping the hue recognizable. Perceptual color spaces make this easier: MDN describes oklch() as using a perceived lightness axis, so changing L produces a predictable step while chroma and hue stay fixed.
Name tokens by role, not by appearance. A token called surface-raised survives a rebrand, while a token called light-gray-2 does not.
Keep the raw values in one place and let design tools and code read from the same source. A palette that lives in three files will drift.
Check the steps that sit next to each other, not only the ends of the scale. Two adjacent values that are almost identical will produce hover states nobody can see, while a large jump makes the scale feel uneven.
How do you design a dark mode version?
Dark mode is a second palette, not an inversion. Pure white text on pure black is harsh, and a brand color that works on white often vibrates on a dark surface.
MDN documents prefers-color-scheme as the media feature that detects a light or dark preference, with light as the default when no preference is expressed. Define a light palette first, then override the tokens inside the dark query.
Lower the saturation of large accent areas and reserve the brightest value for small elements. Use several dark surfaces rather than one flat black, so cards, menus and dialogs keep their depth.
Test the same pairs again in dark mode. A blue that passed at 4.5:1 on white may fail on a dark navy, and a shadow that separated a card in light mode may disappear.
- Keep the same role names in both themes.
- Use a near-black rather than pure black for large surfaces.
- Desaturate large accent fills and keep bright accents small.
- Recheck every text pair, border and focus ring.
- Test images, logos and illustrations on dark surfaces.
- Set color-scheme so form controls and scrollbars adapt.
Which tools help with palette generation and contrast checks?
Palette generators are useful for exploration, not for the final decision. They produce combinations quickly, and the good ones let you lock a brand color, adjust harmony, preview the result and export values.
Coolors generates palettes from the keyboard, includes a contrast checker for text and background pairs, and exports to CSS, SVG, ASE, Tailwind and other formats. Adobe's color tool builds palettes from a base color, offers harmony rules and can extract colors from an uploaded image.
Contrast checkers do a narrower job and belong in every palette review. The WebAIM Contrast Checker reports ratios for normal text, large text and graphical objects against the WCAG 2.0 and 2.1 thresholds.
Use the generator to widen the options and the checker to narrow them. Neither replaces a test in the real layout, because contrast is measured between two colors while a screen contains many.
The color palette generators and design system tools categories list options that export values rather than only images.
How do you document a palette so a team uses it?
Document roles, values, approved pairs and examples. A row of hex codes is not a palette guide, because people need to know which color belongs on a primary button, a table header, an error message and a disabled field.
Give each color a name, a role, screen and print values, and the contrast ratio of its approved pairs. Show do and do not examples, especially for accent use and text on photography.
Connect the palette to the brand style guide and to the design system tokens. Put the values in one machine-readable file and link to it from both places.
Name an owner for changes. A palette without an owner collects one-off colors until the brand looks accidental.
Version the palette when a value changes. A short changelog with dates and reasons prevents a designer from using last year's swatch because it was still saved in a template.
Frequently asked questions
How many colors should a brand palette have?
Most brands need one or two core colors, a neutral family, one accent and a small set of semantic colors for success, warning and error. A product adds interface states and data colors on top. The exact count matters less than the roles: if every color has a named job, the palette is complete enough, and if two colors share a job, it is too large.
What is the 60-30-10 rule in color?
The 60-30-10 rule divides a composition into a dominant color at about 60 percent, a secondary color at 30 percent and an accent at 10 percent. Nielsen Norman Group recommends relatively neutral dominant and secondary colors, with the accent reserved for the primary call to action. It is a hierarchy guideline, not a strict measurement, and interfaces often use more neutral surface than the rule suggests.
How do I check whether my colors are accessible?
Measure the contrast ratio of every text and background pair you plan to use. Normal text needs at least 4.5:1, large text at least 3:1, and interface components and meaningful graphics at least 3:1. Use a contrast checker, record the ratios in the palette file, and repeat the check in dark mode and with a color blindness simulation.
Should I design light mode or dark mode first?
Design light mode first, then build dark mode as a second set of values for the same roles. Light mode is still the default for most products and gives you a reference point for contrast. MDN notes that light is also the assumed preference when a visitor has not expressed one, so the light palette has to work without any media query.
Can I use a palette generator for a client brand?
Yes, as an exploration tool. A generator can widen the options, test harmony rules and export values, but the final palette still needs to be checked against the brand strategy, the contrast thresholds and the real layouts. Review the license for any exported asset, and do not treat a generated palette as a finished identity.
How do warm and cool colors change a palette?
Warm colors tend to advance and draw attention, while cool colors tend to recede and calm a layout. A small warm accent on a cool field creates a clear action point, and a cool accent on a warm field feels more restrained. The balance matters more than the individual hue, so test the ratio on a full screen rather than on isolated swatches.
Sources and further reading
- Understanding Success Criterion 1.4.3: Contrast (Minimum), W3C
- Understanding Success Criterion 1.4.11: Non-text Contrast, W3C
- Understanding Success Criterion 1.4.1: Use of Color, W3C
- Contrast Checker, WebAIM
- prefers-color-scheme, MDN Web Docs
- oklch(), MDN Web Docs
- prefers-color-scheme: Hello darkness, my old friend, web.dev
- Coolors color palette generator, Coolors
- Color palette generator and color wheel, Adobe
- Using Color to Enhance Your Design, Nielsen Norman Group